Creating .ROM files for HP41 ?



#2

Hello,

Further to advices found on the forum for creating my
own .rom files, I've started working with EMU41 which
works great but I'm unable to solve the following problems.
1) I've downloaded the machine code for hp41cx
(5 * 8k rom files) but I'm unable to merge these files into
one .ROM file and then convert it with CLBIN41.EXE
Can I use directly .ROM files in EMU41 ?
2) I've not find the necessary rambox.bin file.
Where can I find it or create it ?
3) Can I load .ROM files directly in V41R8 or does it accept
only .MOD files In this case, how can I convert .ROM to
.MOD files ?
Thank you by advance for advices, I'm very new in this domain.
I own my 41cx since 1984 but don't know anything about machine
langage.

Francois (loooking for a charging port cover ...)
France

Edited: 7 Dec 2005, 3:16 p.m.


#3

Bonjour Francois,

I can answer the questions relative to Emu41:

1) I've downloaded the machine code for hp41cx (5 * 8k rom files) but I'm unable to merge these files into one .ROM file and then convert it with CLBIN41.EXE Can I use directly .ROM files in EMU41 ?

ROM files are compatible with Emu41, you can load them directly without merging or converting them. Just pay attention that Emu41, as a DOS application, doesn't accept long filenames so you have to shorten some ROM filenames to 8 characters (e.g. xfuns3-2d.rom).

The only exception are bank-switched ROMs, that you *have* to merge into a single file so Emu41 can recognize the bank switching scheme. To merge files, you can do at Windows Command Box level:

copy time-2c.rom /b + xfuns5-2D.rom /b cxtime.rom

Finally, the Emu41.ini file for CX machine becomes:

0 4 nut0-N.rom
1 4 nut1-F.rom
2 4 nut2-L.rom
3 4 xfuns-2d.rom
5 8 cxtime.rom the only ROMs that *need* to be merged
The other ROM that need to be merged are: the Advantage ROM (merge the 3 4k-blocs) and the Hepax (merge the 4 4k-blocs)

2) I've not find the necessary rambox.bin file. Where can I find it or create it ?

The Rambox code is part of the Rambox and is included in the ramboxii.dat file (both banks of page 8).

J-F

Edited: 8 Dec 2005, 6:53 a.m.


#4

Merci Jean Francois et félicitations pour EMU41,
I've succeded in declaring the rom files for
41 cx and merging the xfuns rom files into one.
It works great and I find all the modules in cat 2.
For the rambox, I've declared 10 64 ramboxii.dat it's ok.
After, I've created a user code software rom using
INITPG LDPGM XQ>XR SUMPG ENDPG All works great.
I can list my programs in the RAMBOX 64a module and they
are stored in the mldlram.dat file.
After, the problems begin. I copy the mldlram.dat in
emu41in.dat file and execute LOWER and UPPER.
Then rename emu41out.dat in module.bin and convert it
in module.rom. But I'm unable to declare and see my module
in cat 2 either declaring module.bin or module.rom
I think I miss a little detail somewhere but I'm unable
to find where. If someone could help me ....
Thank you again
Francois


Edited: 8 Dec 2005, 3:57 p.m.


#5

For the rambox, I've declared 10 64 ramboxii.dat it's ok

The 64k rambox *must* be declared as:

8 64 ramboxii.dat (starting from page 8, up to page 15)

I understand that your goal is to create a custom ROM module. It's a good idea to use the mldlram.dat file. You just have to override 2 free pages of the rambox, by adding *after* the rambox declaration:

10 8 mldlram.dat for instance

After, the problems begin. I copy the mldlram.dat in emu41in.dat file and execute LOWER and UPPER. Then rename emu41out.dat in module.bin and convert it in module.rom.

You are refering to the LOWER and UPPER utilities described in Christoph Klug's document. I advise to include a CLRDEV function (X-I/O module) after the SELECT function and at the end of each utility, to be sure to reset input file pointer and then close the output file (flush any data in internal/system file buffer).

Tell me if this helps !

J-F


#6

Thank you Jean Francois

I've looked rapidely at my problem.
I'm able to create .BIN files with my code inside but when I declare
it in EMU41, it doesn't appear in any cat but can be exectuted.

Best regards
François


Possibly Related Threads...
Thread Author Replies Views Last Post
  How to copy files from 9114B to hard drive via PIL-box? Joe Horn 23 1,624 12-14-2013, 11:57 PM
Last Post: Geoff Quickfall
  How to update PRIME Firmware using Files on PC Harold A Climer 2 246 12-04-2013, 12:05 PM
Last Post: Erwin Ried
  Loading .prgm files to the Prime Thomas Chrapkiewicz 8 447 10-25-2013, 09:34 AM
Last Post: Eddie W. Shore
  Proper location for files on the PC for Connectivity Kit ,etc. Harold A Climer 8 438 10-23-2013, 02:43 AM
Last Post: Marcus von Cube, Germany
  Creating an App, and evolution for the extreme beginner (me) Geoff Quickfall 4 260 10-20-2013, 01:27 AM
Last Post: Geoff Quickfall
  HHC 2013 speakers' files Joe Horn 2 207 09-26-2013, 02:51 AM
Last Post: Geoff Quickfall
  Nonpareil Rom files davorin 2 180 09-20-2013, 06:20 PM
Last Post: Didier Lachieze
  HP85 Programmable ROM cardtridge 82929A-service ROM not working- inaki 2 227 04-25-2013, 08:08 AM
Last Post: inaki
  shelf life time of a ROM, EEPROM, EPROM vs Mask Rom Guido (Canada) 6 364 01-11-2013, 04:09 PM
Last Post: Thomas Falk
  41 and 71B Overlays, DXF Files? aj04062 0 121 11-25-2012, 08:04 AM
Last Post: aj04062

Forum Jump: