EMU Port Memory
Both the HP-48 and HP-49 have Port memory.  Ports 0 and 1 are stored in the .e48 or .e49 files.

Port 2 is handled differently for the HP-48 emulator and the HP-49 emulator. 

HP-48 Port 2
The HP-48 Port 2 may have multiple banks of 128K bytes.  It is recommended that you keep the size of this card below 4 MB (really 1 MB is plenty!) because the HP-48 has a bug (and the bug is faithfully emulated by EMU48!). You will get the message "Warning: Invalid Card Data" at startup and Port 33will be inaccessible.

The memory from the emulated HP-48 is stored in a Port2 File (this is set in the Project EMUData Tab).

Emu48 Port2 File
This file is used to emulate the Port 2 RAM card of the calculator.  Installed libraries from port 2 may be "attached" to directories of the calculator (like HOME)  This means the.e48 RAM file has references to the Port2 file.  These files should be in pairs.  Always use the matching .bin file for the .e48 file. 

If a different Port2 is used and it does not match the .e48 file library pointers, the calculator will do a warmstart or blink when first started or when keys are pressed.

If no Port2 file is given (the field is left blank) EMU48 will use a default file (set in the registry when running from Debug4x or set from a C:\Windows\Emu48.ini file when run from the start menu).  This might be ok or it might not match, depending on what you have done in the past.  It is just a good idea to create a Port2 file ( copy the default.bin file and rename it) whenever you create a new .48 file.  There is also a MKShared utility on the EMU48 Web site. for creating Port 2 files (or soemtimes called shared.bin files).

The HP-49 emulator uses a FlashRam emulation and does not use the Port2 files.

 

WARNING! Emu48 Port2 File
The EMU48 emulator Edit \ Settings box always shows the current default Shared/Port 2 file EVEN WHEN you have loaded a different file into the emulator through the Project \ Emulator tab or when running from a Windows ShortCut file (like what is included in the Start Menu for Debug4x).

 

HP-49 Port 2 (Flash) Memory
The HP-49 has its Port 2 memory in the FlashRAM.  FlashRAM also contains the ROM code for the calculator.  EMU48 emulation does not distinguish between the ROM code and the Flash memory of Port 2, it is all part of the same emulated file.  This file is the ROM file for the 49.  During installation the file ROM.49g was placed into the file:///C:/Program Files/Debug4x/Emu directory.

The ROM.49g file will be used for all emulations.  Installed libraries from port 2 may be "attached" to directories of the calculator (like HOME)  This means the.e49 RAM file has references to the ROM file.  These files should be in pairs.  Always use the matching ROM file for the .e49 file. 

Copying the ROM file and renaming it is easy.  To use the new file is a little more difficult.  In the EMU directory, there are .kml files which contain a lot of information for the emulator.  The name of the kml files for the HP-49 all start with "R49G...".  The fifth line (approximately) of these files contains the name of the ROM file. 

Copy the kml file that you are using, rename it and then change the ROM file to match your new ROM file.   To find the kml file that you are using, start the emulator in HP-49 mode, go to the menu View / Change kml Script and read the description of the kml file.  Now go find the kml file with a matching description in the title (about the second line).  This is the kml file you should copy (BE SURE to change the title line so you can recognize your new file).

After making a new ROM and new kml file, start the emulator and use View / Change kml Script to select your new kml (and the new ROM file mentioned in the kml will now be used).  Now use the emulator File / Save As menu to save a new .e49 file.

It takes a little work but now you have a new, completely separate HP-49 emulation.