Virtual 82143A "plots" graphics

82143A 82162A 82240B 2225B

Virtual 82143A "plots" graphics

Postby mike-stgt » Wed Feb 15, 2023 9:35 am

Christoph published version 1.14 of his 82240A/B printer simulation supplemented by a 82143A option. This is a milestone with regard to emulation and HP41 nostalgia, me think, since it enables for the first time on virtual "equipment" (AFAIK) to get useful output from PPC ROM program HP (High resolution Plot).

Due to the unidirectional nature of the connection, the printer simulation is rather an output display "only" (in fact, it correctly interprets the received data). But this is why part of the printer simulation remains duty of the calculator emulator/simulation. It is similar to the real IR printer module, for the average users a printer inks/stains paper while seen from the HP41 the IR printer module is the printer, with no chance to detect, if and how the sent out data is used.

The virtual printer includes also the controls of the 82143A, the printer front panel offered by NutEm/PC looks like this:
tepcopan.jpg
Simulated front panel of the 82143A
tepcopan.jpg (9.83 KiB) Viewed 27258 times
Like the role model 'Print' and 'Advance' insert PRX or PRA and ADV when the HP41 is in program mode. More details here.

NutEm/PC self-acting starts and stops the external 82143A if requested so in the CFG file, section THPR:
Code: Select all
[THPR]
/port/5026
/dip/127.0.0.1
/IrPrIPa/C:\PRGM\HP-Emulators\HP82240B   ; IR Printer Installation Path
/inifile/port 5026
/qxp/1      ; at shutdown also quit external printer if NutEm/PC started it
W/o this section, including the printer ROM 1E starts the internal, text-only output display, which is part of NutEm since the mainframe times. (BTW, there is no need to know REXX to run NutEm/PC, you may enjoy pulled pork w/o knowledge how to breed pigs.)
mike-stgt
.........
.........
 
Posts: 179
Joined: Tue Dec 24, 2019 12:12 pm

Virtual 82143A with same "fonts" as its role model

Postby mike-stgt » Mon Oct 02, 2023 10:26 am

Recently Andrew published a Dumper for the M3780 microcontroller family, also what he ripped from a device out of an HP82143 printer. By browsing the hp82143.hex dump I found the "fonts" or character bitmaps.
Since I do not know how to do similar on a PC I used following pipe under z/VM to extract it and convert to BLDSPEC "special characgters" format:
Code: Select all
    0 * * * Top of File * * *                                                 
    1 /* GEPRIFO  EXEC: get printer font from M3780 microcontroller         */
    2 "PIPE < HP82143  HEX",                /* read file                    */
    3  '!frlabel 0580:',                    /* don't mind prologue          */
    4  '!substr w2-*',                      /* keep hex values only         */
    5  '!space 0',                          /* remove blanks                */
    6  '!fblock 10',                        /* 5 colums make one character  */
    7  '!take 128',                         /* it's a 7 bit CP only         */
    8  '!spec w1 x2c',                      /* convert to binary            */
    9  '!reverse',                          /* left to right sequence now   */
   10  '!fblock 1',                         /* slice to columns             */
   11  '!spec 1 c2b',                       /* convert to 0/1 only          */
   12  '!substr 2-*',                       /* get rid of MSB               */
   13  '!join 4',                           /* 5 colums = 1 character       */
   14  '!insert /0000000/ after',           /* append a 6th empty column    */
   15  '!insert /00010000000000/',          /* should be BLDSPEC format     */
   16  '!spec w1 b2x',                      /* prepare for safe transfer    */
   17  '!> prchrset hex a'                                                     
   18 exit rc                                                                 
   19 * * * End of File * * *                                                 

The resulting file I used with V41 and following routine:
Code: Select all
 01▶LBL "INSPECF"
"DOSLINK"  FINDID 
SELECT  "PRCHRST"  CLFL

 07▶LBL 01
INA  CODE  SF 25  SAVEX
FS?C 25  GTO 01  STOP 

 15▶LBL "PRCRST"
CLX  SEEKPT  8 

 19▶LBL 02
16 

 21▶LBL 03
GETX  ACSPEC  RDN  DSE X
GTO 03  PRBUF  RDN 
DSE X  GTO 02  .END. 

First part loads the intermediate file prepared on (emulated) mainframe to a data file of 128 records in XMem, then, after replacing IL module by a 82143A printer, the 2nd part prints the "font".
Result:
PR charset from M3780 dump.jpg
PR charset from M3780 dump.jpg (15.16 KiB) Viewed 26830 times

Compared by image processing It shows no difference vs the "fonts" built-in Christoph's 82143A, an extra mode of the HP82240B simulation.
mike-stgt
.........
.........
 
Posts: 179
Joined: Tue Dec 24, 2019 12:12 pm

Re: Virtual 82143A "plots" graphics

Postby amenjet » Tue Oct 03, 2023 9:23 pm

Excellent idea. So that confirms the dump is probably correct, which is good news.

Andrew
amenjet
.
.
 
Posts: 1
Joined: Tue Oct 03, 2023 9:19 pm


Return to Printers

Who is online

Users browsing this forum: No registered users and 1 guest

cron