Quote:
3) I LISTed my program on the HP 42S
I'm not familiar with the 42S, but I do have the manual on the
Museum DVD. It looks like it uses a pretty strange character set.
I hope that you've read the printing topic in it.
Quote:
4) On the HP 48, I stored the resulting string in a variable
Right. You may want to recall the string to the stack, and then
edit it just to get a look at what INPRT received, before any
changes that transferring it to the PC may cause.
Quote:
5) I transfered the variable to my PC with Transfile WIN 48
What I got is a file with an identifying tag at the beginning
(added by Transfile?)
I'm not familiar with Transfile; is it Kermit-based or
Xmodem-based?
Anyway, Kermit transfers can be either "ASCII" or "Binary",
determined by system flag -35 on the 48. Xmodem transfer are
Binary only.
Kermit ASCII transfers start with a header similar to:
%%HP: T(3)A(R)F(.);
by itself on the first line. The decompiled, and optionally
translated, form of the object follows the header starting on the
next line.
the T(n) parameter may be of interest to you. It records the
translation mode for non-ASCII characters, the "\" character, and
the LineFeed code. See your HP 48 manual for details.
Binary transfers from the 48 series start with a header of:
HPHP48-x
where x represents the ROM version. The compiled object
immediately follows the binary header. For a character string, the
compiled object starts with a 5-nibble prologue, followed by a
5-nibble length field, and finally, the characters in the string.
What it boils down to for a binary transfer of a character string
is: Delete the first 13 bytes in the file, and the remainder
should be the original character string.
Quote:
and the program lines (with some garbage in
between, transmission errors?).
I don't know. Are all of the expected program lines present and
complete?
Quote:
The lines are seperated by HEX(04) instead of CR/LF.
That makes sense. The 82240 printers use that as an "alternate
Line Feed"; it prints the characters in the buffer and leaves the
print head at the right margin. I don't know whether it will help
you, but also see the
HP
H2240B Infrared Printer Technical Interfacing Guide
Regards,
James