|Re: How to print a program from a 28C ?|
Message #7 Posted by Vieira, Luiz C. (Brazil) on 17 May 2005, 1:08 p.m.,
in response to message #6 by marais
I had the same surprise when first listing an RPL program in an 82240A. Mostly when I saw that the 82240A had a single space dot line between printed lines. The 82240B uses two space dot lines, it's a lot easier to read.
I have already searched all available HP28C/S related directories at hpcalc.org and found no specifc reference to pretty printer. I checked the whole hpcalc.org for pretty and print/printer/printing and found no specifc HP28C/S, too. Maybe it is no longer available, though.
I've been wondering about how to do a better printing with the HP82240, one line for each 'action' instead of one line for each command. I found no prectical way. For example, when STO appears as an instruction it must be kept in one single line, because whatever exists in level 1 and 2 is going to be used as parameter, and there is no way to specify. The one case I can think of is FOR with the variable name. As a general rule, if you convert the program listing to a string (there is a [->STR] in the HP28S repertoire and I forgot about it... I'm not sure if it breks the listing into many for each occurrency of a string in the program) and create a loop that replaces each SPACE character for a LINEFEED, than you can print the resulting string, that's gonna have single lines. One hint: if the resulting string is not broken with the occurrence of strings already existing inside the program AND you want these to be printed as a single line, i.e., keeping the spaces as spaces, then the 'converting loop' should detect the occurrence of '"' and wait tilll the next '"' prior to continue replacing.
Another thought of mine, not a solution...