PDA

View Full Version : iPhone MAME WIP NEWS - Arcade Emulator for iPhone



wraggster
August 16th, 2007, 18:18
kaisersoze (http://code.google.com/p/iphone-sdl-mame/) has updated his site with some news of his progress of porting SDL MAME to the Apple iPhone, heres the news from his page:


I compiled the tiny MAME target and it runs, but I can't get it to display anything. I ran into some issues with the arm linker not linking code from the .a archive and had to manually add a few of .o object files to get it to link. I tried using llvm-ar instead of ar but doesn't appear to quite work yet.

Currently I'm sprinkling printf's throughout the SDL MAME ui menu drawing code to figure out what my screen is still black. :)

Ah I found the problem, for some reason, one part of MAME thinks its running at 640x480 but when it gets to the rendering code, it clips the dimensions to the actual screen size 320 x 480, so it winds up not drawing anything. I think once I get that fixed we should be good to go!

Well of course, searching for hardcoded 640 and 480 values didn't work because the actual code that computes the minimum size uses 639 and 479, ah the joys of programming. Almost there...

Now I'm running into some crazy code generation issues with int to float conversions, grrrrr.....

Just hacking my way through those crazy int to float code generation issues at the moment. Hopefully it's isolated to a few places (crossed fingers). I've now got the menu box displaying which is progress. Hopefully I can replicate the problem with a simple program so I can show it to the iphone toolchain maintainers.

Here's a screenshot of the humble SDL testsprites running:

http://iphone-sdl-mame.googlecode.com/svn/trunk/screenshots/sdl-testsprites.png