>Great! Just a thought: using your code as a starting point, would it be
>possible to recompile a popular game series like Pokemon for a standard
>MSX-2 running on 3.57MHz? I think that could mean a lot for the popularity
>of the MSX system.

As Ricardo Bittencourt found out, Pokemon Green currently runs on GEM. In 
fact, Blue and Red work as well. They're not fully playable, since they 
need window support for the menu's (right after the titlescreen) and for 
the in-game messages.

Ofcourse the speed is pityful ^^;;;
On turboR, the titlescreen of Megaman runs at 100% speed. But it slows down 
when the real action begins (especially with sprite support).
For Tetris, it needs BrMSX running in -turbo mode on a 600MHz Athlon to 
reach 100% speed (I have no idea at what speed BrMSX is emulating the MSX 
then). On a turboR it runs at about 30% I guess.

Before I started GEM, I played with the idea of using Static Recompilation. 
I talked to Laurens Holst about it and at first it seemed a good idea, but 
after thinking some more there were too many problems.

The problem with Static Recompilation (taking a GB ROM and turning it into 
a MSX executable) is that there's a lot you need to know beforehand and 
therefor not very practical. Such a program would have to be written on PC, 
for speed considerations.

On the other hand, like you say, using GEM as a basis for some other kind 
of recompilation (dynamic or a mix of recompilation and emulation) is not a 
bad idea.
Laurens had the idea to implement something similar in GEM. First scan the 
ROM for opcodes and routines that can be run natively on the MSX, then mark 
these routines with a special byte (some illegal Gameboy opcode). When GEM 
encounters this special byte, it jumps to ANOTHER copy of the ROM, thus 
needing twice the amount of memory, where it will execute the routine and 
return with a RET.

Although it's not a very elegant solution to use twice the memory, there's 
another problem. Needless to say the scanning part would be very slow and 
needs to be intelligent enough to see the difference between code and data. 
Thus you need some sort of emulation to find that out. *sigh* It's not easy...

I was planning on writing patch-support through the config file anyway, so 
an external program (possibly on PC) could do the scanning and output the 
changes to a textfile. Another possibility is hacking into the game by hand.

The patch-support is needed anyway, since some games use crazy stuff to get 
some extra speed. Mortal Kombat 3 for instance thinks it's being clever by 
writing to I/O (which is memory mapped) with a PUSH! ^^;

Basically, I'll have to give all of this some more thought, and I really 
want to perfect video-emulation (window) first. Any ideas or theories are 
welcome though!

Greetings,

         Patriek


****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED]
and put "unsubscribe msx [EMAIL PROTECTED]" (without the quotes) in
the body (not the subject) of the message.
Problems? contact [EMAIL PROTECTED]
More information on MSX can be found in the following places:
 The MSX faq: http://www.faq.msxnet.org/
 The MSX newsgroup: comp.sys.msx
 The MSX IRC channel: #MSX on Undernet
****

Reply via email to