On Sat, Jan 20, 2001 at 09:50:36PM +0100, Jose Angel  Morente wrote:
> > How about ERF (Extended ROM Format)? It sounds cool, IMO...
> 
> Yeah!

"Extended ROM Format" is rather general; then again, all abreviations don't
seem to be very descriptive. Why not simply .msx? As far as I know this extension
has been used for:

1. Bogus disk images at: ftp://jazz.snu.ac.kr/pub/msx/
   Not widely used at all.

2. Virtual MSX configurations files. Never seen them on the Internet, not
   very useful either (just contains current ROM in slot A & B, and some
   gui settings). Virtual MSX is useless & dead anyways.

That's not much so .msx is acceptable IMHO. And descriptive, because it's an
MSX game. :-)

> > A possible option is to allow the ROM data (not the header) to be compressed. It
> > saves harddisk/CD-ROM space and you don't have to unpack the file after you
> > download it. Is there a compression algorithm doesn't have any patent issues and
> > is either easy to implement or already implemented under a liberal license
> > (preferably BSD or similar)?
> 
> A simple LZW algorithm?

Well how about gzip? There's zlib which has a pretty good license:

Copyright notice:

 (C) 1995-1998 Jean-loup Gailly and Mark Adler

  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
  arising from the use of this software.

  Permission is granted to anyone to use this software for any purpose,
  including commercial applications, and to alter it and redistribute it
  freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not
     claim that you wrote the original software. If you use this software
     in a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be
     misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

However I don't think data should be compressed in the file itself. In order to keep
things simple, compression should be handled outside the actual format. Emulators
should support reading compressed files, like msx.gz -- much nicer. This also makes
it simpler for implementations on the MSX itself. If it's a simple compression
format (which it will be if it can be decompressed on the MSX itself, don't want
to write flame bait but the MSX is very slow) it can be compressed better
with zip or gzip. So you'll end up downloading .zip files anyways.

I don't see anyone porting gzip to the MSX.
 
> > Maybe it is even possible to extend this approach to include descriptions of
> > SRAM. That would be really cool, but it may be too complex.
> 
> I think you are great!  It would be nice!

It would be very nice to have a format that actually describes how the mapper
works, and not just a mapper number. Then if you find a cartridge with an
"unknown" mapper -- different to all known mappers -- emulators will still
support them. This more difficult to implement of course.

Basically the whole problem is that the end user had so specify what mapper type
a .rom file is. This is not very user-friendly. 

The mapper type can be auto-detected to a certain extend, but this isn't
always possible -- how do you know if an ascii/8kb mapper has sram or not? 
And if the game has a D/A, like Synthesizer or Majutsushi? (This should also
be in the format of course). As far I can see this is a theoretical
impossibility. 

As far as I can see, there are two possibilities:

1. Extending the .rom format. 

2. Keeping a seperate file with a list of CRCs and mapper information. This
   has proved to be a bitch to maintain (since the user-base isn't that
   big I suppose). MESS uses this. :)

Personally I prefer option 2 as it keeps the actual format really simple.
However I don't have any objection to option 1. It has to be dynamic
of coure. 

Note:

o Some games run on one machine but features of another (Nemesis 3
  runs on MSX1 but uses MSX2 palette). Space Manbow runs fine on
  an MSX2 but uses MSX2+ scrolling functions if available.

o Some games only run on specific machine. Metal Gear 2 Japanese
  resets on non-Japanese MSX machines, others use the Japanese 
  font in the bios rom; looks garbled on other machines.

o Like mentioned above, two games I know of have a D/A.

o R-Type has a funky format. It's 3 megabit, and block 0 (when you
  write 0 to the switch-address) doesn't contain the AB code. The
  byte you write is inverted -- or at least that's what it seems
  like.

o Some games have SRAM. There's The Game Master 2 and Hydlide 2
  (which is ascii/16kb + 2kb sram). Also there are quite a few
  ascii/8kb with 8kb sram: Royal Blood, Xanadu, Jingism, Nobuzema,
  Ultima, Wizardry, War of the Dead. Also the fm-pac has sram
  of course.

o The switch address in Cross Blaim is 4045h. Super Load Runner
  is rather funky too.


Does anyone know any other mapper formats? So far I've found 
(taken from mess development):

#  0 standard (no mapper)
#  1 msx-dos 2
#  2 konami5 with SCC
#  3 konami4 without SCC
#  4 ascii/8kb
#  5 ascii/16kb
#  6 Game Master 2 with SRAM
#  7 ascii/8kb with 8kb SRAM
#  8 ascii/16kb with 2kb SRAM
#  9 r-type
# 10 Konami mah-jong 2 (majutsuhi)
# 11 Panasonic fm-pac
# 12 Super Load Runner
# 13 Konami Synthesizer
# 14 Cross Blaim



Sean


--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html

Reply via email to