PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

ARM emulator (just for fun)

hi

recenetly i'am working on blitting library for pocketmvp video player and needed a minimal cpu emulator for better testing (especially mips and sh3 because i don't have such devices) i'am making this just for fun, so i went a little off the point :) although the sh3 emulator is not finished, i spent some time tring to make a minimal wince enviroment. here is the result. maybe someboby will find it usefull, or get some ideas, or whatever. it's definitly not a finished emulator, i was to lazy do define all the coredll functions. the arm->x86 core is very new (yesterday) maybe it has some bugs. not too much optimized, but on my 2.4Ghz P4 runs faster as my XScale 400Mhz PPC.

http://www.demoscene.hu/~picard/pmvp/emu.zip

screenshots:
Attachments:
screenshot.jpg
That's my PocketPockets demo :)

And that's pretty impressive emulation!.

I've experimented with the ARM emulator core from Visualboy Advance for testing ARM code functions - I assembled my ARM functions to raw binary data and load them at run-time - I can call them by casting a function pointer, or calling the emulator if it's a win32 build

Spent some time working on ARM rasterizing code - the emulated code is painfully slow if I do a debug build, and slower than my 206mhz PPC in release builds (on an XP1800/1Gb)

Anyway, PocketPockets is making good progress - I've got a Symbian build working, table/pocket collision+physics now work, and added Hekkus for audio :)
picard wrote:it's definitly not a finished emulator, i was to lazy do define all the coredll functions. the arm->x86 core is very new (yesterday) maybe it has some bugs. not too much optimized, but on my 2.4Ghz P4 runs faster as my XScale 400Mhz PPC.

Neat stuff. I was sooo close write a similar lib myself to test my JITer code for rasterizers, so I'll pretty much immediately go ahead and include it in my project. Are you interested in getting feedback? Do you have plans towards posting it as a project on something like sourceforge?

Maybe you posted it earlier, but what exactly is your "blitting library" about? And for what operations are you using/planning to use dynamic code generation?

- Martin
hm wrote:
Neat stuff. I was sooo close write a similar lib myself to test my JITer code for rasterizers, so I'll pretty much immediately go ahead and include it in my project. Are you interested in getting feedback? Do you have plans towards posting it as a project on something like sourceforge?

if you don't need the wince stuff just use the core cpu emulator part (emu subdir, emu.h header). call Reset() and AttachThread(), and you are ready Call() into an ARM code (MIPS is slow). feedback is always welcomed. i never created a sourceforge project before. i'am not sure if i will have interest to support this project in the future, but we will see.

hm wrote:Maybe you posted it earlier, but what exactly is your "blitting library" about? And for what operations are you using/planning to use dynamic code generation?

software yuv->rgb color space convertsion with optional rotation, dithering, scaling, brightness, contrast, etc... there are too many combination for static linking, this is the reason for dynamic code. btw the library is included in the emulator (draw subdir) i used the general rgb conversion part. the second part of the library is overlay managing with different APIs like GAPI, GDI, ATI Imageon (not yet), TV cards etc...