Uploading hp41 plug in modules to emu41



Yüklə 31.26 Kb.
tarix05.03.2018
ölçüsü31.26 Kb.

HP41 & EMU41

Uploading plug in module ROM-image-files

This document gives you some details about uploading ROM-images (plug in modules) from HP41 to EMU41 by using ZENROM or HEPAX or RAM-Box. The appendixes will give you details about ROM image file conversion between HEPAX and RAM-Box format, and about storing ROM-image-files on tape (IL-Cass-Drive).



EMU41 virtual loop configuration:

First check and set the virtual loop configuration of EMU41: Open the EMU41.INI file and check / set / save the following configuration:


DISPLAY 1. Device

PRINTER 2. Device

HDRIVE1 3. Device

;FDRIVE1 not used

DOSLINK 4. Device

XIL 700 (or 300) HP-IL/PC interface card


Wire HP41 to PC (IL-Module and HP-IL/PC interface card). Start EMU41. Switch on the real handheld and execute AUTOIO, SF 15. CCD-Module list you the devices above with CAT 0 to EMU41 screen display.

Part I: Working with ZENROM.
The following parts are needed: HP41, IL-Module, Zenrom, (CCD Module), HP-IL/PC interface card, EMU41 full version. Possible HP41 port configurations are:


ZENROM




ROM

IL-Module

or with CCD-Module :



CCD

ZENROM

ROM

IL-Module

If you work with CCD and Zenrom, deactivate the low letter mode of the CCD-Module as described in the CCD-Module manual (see page xxx)


ZENROM disassembler test :
Execute MANIO 1 SELECT SF 15 and start the Zenrom MCode editor with XEQ MCED. After the COMMAND? prompt press the ENTER key for activating the disassemble mode : You get the following HP41 screen display
DIS : _ _ _ _ , _ _ _ _

Enter the start address of the page you want to disassemble, for example the lower page of port 3


DIS : C000 , _ _ _ _
Now enter the stop address for a 4Kbyte module :
DIS : C000 , CFFF
Or the stop address for a 8Kbyte module :
DIS : C000 , DFFF
Start disassembling by pressing R/S key. Now you get a test listing on EMU41 screen display. Stop listing by pressing R/S again. Now you get the COMMAND? prompt. Terminate MCED by pressing the ON key.

Writing inside a DOS text file:

Now we disassemble the module data inside EMU41OUT.DAT text file: MANIO 4 SELECT activates the DOSLINK of EMU41. Again start the disassemble mode with SF15 XEQ MCED After the COMMAND? prompt press ENTER and input start and stop address of the module :


DIS : _ _ _ _ , _ _ _ _
After pressing R/S the procedure runs, but you get no EMU41 screen response about this (refer also to appendix II). Remember: Disassembling a 4KByte page or a 8KByte page takes some time. Therefore wait until transfer is finished completely and you are presented again the COMMAND? prompt. Then stop MCED by pressing the ON key. Deactivate your handheld and EMU41. Open the EMU41 folder and open the EMU41OUT.DAT file with any text editor. Store this file in same folder under NAME.LST. Open NAME.LST and edit the text :
MCED

DIS : C000,CFFF

C000 005 XROM 05

C001 00D FCNS 13

:

:

Remove the first two leading lines, only the start address and following text lines are used. Save the file and close the editor. Now finish work with PART III.



Part II: Working with HEPAX.
Also by using the module it would be easy possible to create a disassembled ROM-image .LST file. The following parts are needed: HP41, IL-Module, HEPAX, HP-IL/PC interface card, EMU41 full version.


HEPAX




ROM

IL-Module


HEPAX disassembler test :
Start EMU41, then switch on your HP41. First we disassemble to the EMU41 screen: Execute AUTOIO and start the HEPAX disassemble mode with XEQ DISASM. You get the following display message :
DIS : _ _ _ _

Enter the start address of the lower page of port 3 (= page C) :

DIS : C000 – _ _ _ _


Now HEPAX generates a new prompt for entering the stop address. For a 4Kbyte module enter:
DIS : C000 – CFFF
For a 8Kbyte module enter :
DIS : C000 – DFFF
HEPAX starts the process automatically. After looking to the screen display stop the listing by pressing R/S.

Writing inside a DOS text file :

Now we disassemble to a DOS file: Select the EMU41OUT.DAT text file by pressing MANIO 4 SELECT , this activates the DOSLINK of EMU41. Again execute XEQ DISASM and enter start and stop address :


DIS : C000 – CFFF
During the writing into the EMUOUT.DAT file you get no EMU41 screen response about this (refer also to appendix II). Remember: Disassembling a 4KByte page or a 8KByte will take some time. Therefore wait until transfer is finished completely. Then deactivate your handheld and EMU41. Open the EMU41 folder and open the EMU41OUT.DAT file with any text editor. Store this file in same folder under NAME.LST. Open NAME.LST and see the text :
C000 005 XROM 05

C001 00D FCNS 13

:

:

There is no need to edit the HEPAX output. Close the file.



Now finish the work with PART III.

Part III: Generating a .BIN file.
With help of ZENROM or HEPAX we create the NAME.LST file. For generating a .BIN file we need the MS DOS prompt. Jump to the EMU41 with DOS command C:/ CD EMU41. Than execute the following command line :
CLBIN41.EXE NAME.LST NAME.BIN.
Close the MS DOS window and open the EMU41 folder. Now you find the new NAME.BIN file. Size is 5,00KB for a 4Kbyte ROM-image-file or 10.00KB for a 8Kbyte ROM-image-file. Move the NAME.LST file to an other folder (for example HP41 modules) and delete the contents of the EMU41OUT.DAT file.
Installing the virtual ROM to EMU41 :
In the last step we install the new virtual ROM to EMU41. For this open the EMU41.INI file with a text editor. Add the following line :
; X 4 NAME.BIN ; comment text which includes the XROM Number
for a 4KByte ROM-image file, or
; X 8 NAME.BIN ; comment text which includes two XROM Numbers
for a 8Kbyte ROM-image-file. X is the port number and runs from 8 up to 15. By removing the leading ; you activate the virtual module for EMU41. Avoid doubling identical XROM numbers and do not place two modules on the same port address. Save the file.
Start EMU41 AUTOIO (press F8 F4 AUTOIO F4) SF15 (press F5 7 15) and execute CAT 2 (press F5 N 2). Now the actual plug ins are listed.

Part IV : Working with RAM-BOX :
Alternatively to Part I (ZENROM) and Part II (HEPAX) you can use a RAM-BOX. Then the ROM-image file upload to EMU41 is much easier and faster. The following parts are needed: HP41, ERAMCO or W&W RAM-Box (or HP41CY), IL-Module, HP-IL/PC interface card, EMU41 full version. Possible HP41 port configurations with W&W Ram-Box or HP41CY are :


W&W OS

Page 9


Page A (=10)

Page B (=11)



Page C + D

IL-Module



Page E (=14)

Page F (=15)


Port configuration for the EAMCO RAM-BOX :




Page +1

Page -1


Page +2

Page -2


Page +3 / -3

IL-Module



RSU 1 OS

RSU 2 OS


Write the ROM-image file on virtual drive :
Check the virtual drive of EMU41 by executing AUTOIO and DIR (= CAT 7 with CCD-Module). This lists the existing files stored on the drive to the EMU41 screen. Now enter a NAME for your ROM-image-file to the ALPHA-Register.
For writing/saving the lower Port 3 with W&W RAM-BOX you enter 12 to X-Register and execute WRTPG. Enter 13 to X-Register for writing/saving the upper Port 3 and execute WRTPG.
For writing/saving the lower Port 3 with ERAMCO RAM-BOX you enter +3 to X-Register and execute WRTRAM. Enter -3 to X-Register for writing/saving the upper Port 3 and execute WRTRAM.
DIR (CAT 7) shows you the new 640 register ROM-image file on the virtual drive.
Virtual RAM-BOX for EMU41 :
Open the EMU41.INI file and activate the W&W RAM-BOX operating system on port 8. Activate the MLDLRAM.DAT file to port 12. Than save the EMU41.Ini file. Copy the MLDLRAM.DAT file, rename it to MLDLRAM.OLD and store it to the EMU41 folder. Now your have available a virtual RAM-Box with 8Kbyte RAM on Port C.
Read the ROM-image-file to virtual RAM-BOX :
Start EMU41 and enter the NAME of the ROM-image-file on the virtual drive to ALPHA-Register. Enter 12 to X-Register and execute READPG. Now CAT 2 lists you the imported module, and you are able to execute functions of the new virtual plug in module.
Save the ROM-image-file as .BIN file :
Enter the EMU41 folder and rename the MLDLRAM.DAT file to NAME.BIN file. Than rename the existing MLDLRAM.OLD file to MLDLRAM.DAT file. Open the EMU41.INI file deactivate the MLDLRAM.DAT file on port 12 and add the new NAME.BIN file to the list :
; X 4 NAME.BIN ; comment text which includes the XROM Number
for a 4Kbyte ROM-image. In this case the upper 4KByte block is not used / needed. Or enter
; X 8 NAME.BIN ; comment text which includes the XROM Number
for an 8Kbyte ROM-image-file. Activate the new .BIN file on port 12. Last save the EMU41.INI file. Start EMU41 and work with the new virtual plug in module application.

Appendix I : Compatibility of ROM-image files
The RAM-Box ROM file format of W&W and ERAMCO is identical and also compatible to the ZEPROM file format (command ILBURN). Unfortunately this format is not compatible to the HEPAX ROM-file format.
With help of EMU41 it is possible to convert ROM-files between the RAM-Box and HEPAX format. Install the W&W RAM-Box operating system and the HEPAX operating system to EMU41 by editing EMU41.INI file :
8 16 hepax1d.bin ; hepax XROM 07 bank switched module

11 4 rambox.bin ; rambox w&w XROM 31


When starting EMU41, HEPAX places the belonging HEPAXRAM.DAT file automatically to port 8 and port 9, the operating system is placed to port 10. It is possible to use the HEPAX RAM on port 8 and port 9 also with the W&W RAM-Box operating system.
Therefore you are able to transfer ROM-files between page 8 page 9 and the virtual drive of EMU41 by executing the HEPAX commands WRTROM or READROM or the W&W RAM-Box commands WRTPG and READPG. Place the filename to Alpha-Register and the port number (in this configuration 8 or 9) to the X-Register. Than execute one of the four commands.
Last you transfer the ROM-files from the virtual drive to your HP41 handheld with RAM-Box or HEPAX.
For easy and fast exchange of HP41 ROM-files by email copy the HDRIVE1.DAT file from the EMU41 folder (= virtual tape or disk) and transfer them to other HP41 enthusiasts.

Appendix II : Writing inside a DOS file with EMU41 screen response.

May be you prefer to get a real-time screen response during uploading great files (like a disassembled ROM-image-page) inside a DOS text file, as we know this from TRANS41 software.


As Jean-Francois Garnier told me, this is also possible with EMU41 : At DOS prompt start EMU41 with the /lg extension (= logger). Than EMU41 automatically generates a DISP.LOG file and transfers the screen output also to this file. When the data upload is completed leave EMU41 (press F1) and open the DISP.LOG file which contains the data.


Appendix III : Storing ROM-image files on cassette tape.
If you want to store ROM-image files with RAM-BOX on tape (IL-Cass-Drive) execute NEWM 027. After writing 12 ROM-image files on tape add a 300 register data file with CREATE, named ENDTAPE. Now you are able to store 12 more ROM-image-files on the second track of the tape.


Christoph Klug, Hildesheim, October 2003



Dostları ilə paylaş:


Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2017
rəhbərliyinə müraciət

    Ana səhifə