Post Reply 
Strange print behavior with HP50 and HP82240B
05-18-2020, 09:03 PM (This post was last modified: 05-18-2020 09:05 PM by cahlucas.)
Post: #14
RE: Strange print behavior with HP50 and HP82240B
(05-16-2020 10:33 PM)Joe Horn Wrote:  
(05-16-2020 08:28 PM)cahlucas Wrote:  Hi all,
While programming an application, I noticed that there are HP50g calculators that do not print the full 24 characters per line on the infrared printer, using the PR1 command.

Please give us an example of what you are printing, how you are printing it, and what exactly gets printed. Otherwise we're just guessing what problem you're seeing.

Dear Mr. Horn,
The data that needs to be printed is digital numbers, like # 1A6F4D28, but if the user wants to, in HEX, DEC, OCT, or BIN mode. The output is formatted for HEX mode in bytes like this"1A 6F 4D 28", this for easy reading. In OCT mode it is like this: "3 2 3 3 6 4 6 4 5 0", and in BIN mode: "1 1010 0110 1111 0100 1101 0010 1000". The last output is then formatted as 4 nibbles in a row. The program has the abbility to show and print several binary numers that are present on the stack up to level 32. At the moment the error concerns printing in OCT mode, and the heading, see example below. The error in the heading occurs somtimes also in DEC mode. Printing in HEX, DEC and BIN is is otherwise good. I hope to have informed you sufficiently. Sincerely, Karel.

Code:

[i]Intended output:[/i]
Stack level 6 (OCT):
         1 1 0 6 4 2 5 4 7 4
       2 2 0 0 4 4 3 2 1 2 6

[i]Printed output:[/i]
Stack level
6 (OCT):
    1 1 0 6
4 2 5 4 7 4
  2 2 0 0 4
4 3 2 1 2 6

I use HP-16C, WP-34S emulator, HP-35s, HP-48GX, HP-50g, and HP Prime G2.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Strange print behavior with HP50 and HP82240B - cahlucas - 05-18-2020 09:03 PM



User(s) browsing this thread: 4 Guest(s)