|Re: Nonpareil news|
Message #16 Posted by Howard Owen on 13 Dec 2005, 8:01 p.m.,
in response to message #15 by John Ioannidis
Apologies if this is old ground. I just recently looked at this myself, so it was new to me.
The V41 source includes a utility to go the other way,.mod->.rom, but as far as I know, there's no utility to create a MOD file from one or more roms. It's not a completely automatic process in that direction. If it's your own module, you need to write an info file for it. Here's an excerpt from the info file for the CCD module in the V41 distribution:
FILE NAME: C:\Program Files\V41\MOD\Ccd.mod
FILE FORMAT: MOD1
TITLE: CCD Module
AUTHOR: W&W Software Products GmbH
COPYRIGHT (c) W&W Software Products GmbH
LICENSE: GNU General Public License
CATEGORY: Custom peripherals
MEMORY MODULES: 0
EXENDED MEMORY MODULES: 0
ORIGINAL: Yes - unaltered
APPLICATION AUTO UPDATE: No - do not update this file
NUMBER OF PAGES: 2
ROM NAME: CCDL-1B
ROM ID: WW1B
PAGE: May be in more than one location
POSITION: In lower relative to upper page
PAGE GROUP: 1
BANK GROUP: 0 - not grouped
Write Protected: No or Not Applicable
XROM Addr Function Type
09,00 754B -W&W CCD B 4K MCODE Programmable
09,01 7764 B? 4K MCODE Programmable
And so forth. That file contains a second ROM section for the upper 4K page. Both end up with something like this (taken from the second one in the CCD file.)
11,41 169C5 8K MCODE (Not decoded)
Pause loop: 000
Main running loop: 000
Deep sleep wake up, no key down: 000
I/O service: 3C3
Deep sleep wake up: 2D3
Cold start: 000
CHECKSUM: 37F (CORRECT)
All of that corresponds to how HP-41 roms are organized, which could be generated from the rom itself. But the metadata at the front needs to be filled in by a human being, I think.
Exactly how the info and rom files are glued together in the .MOD is a matter for the source code to tell.
If it isn't your own ROM, the V41 package will likely have what you need. Otherwise the other TOS resources will probably cover it.
Edited: 13 Dec 2005, 8:25 p.m.