Hi!
I've written my program on the GP2X.
Emulators like GpSp for the Gameboy Advance also emulate the cpu. My question is "why?!", because the Gp2x has 2 ARM processors on board, so it seems nonsense to emulate an ARM processor.
So, I started doing some coding, seeing wether I could run a GBA rom on the native processor. I took a ROM from Francesco Lombardi's FPC4GBA project and tried to get it running on the Gp2x.
This now works. Don't expect an emulator, because the current program is barely worth such a description, and will probably not run anything besides this ROM (the only thing it emulates, in a primitive way, is GBA video mode 4). No BIOS, or any other hardware is emulated. But it runs the ROM, directly on the ARM920. The ARM940 runs the GBA mode 4 emulation.
The potential could be efficient (more than) full speed emulation with low battery drain, but likely less accurate emulation is possible (i.e. forget about clock cycle perfect emulations).
You can download the result here:
http://www.freepascal.org/~daniel/gbaemu_concept.zip
It contains a fpcLogo.gba ROM, which will run on your GBA or emulator.
Unzip it on your SD and run it, it runs on your Gp2x. There is no way to exit the emulation, the only way to stop it is to kill it. Powercycling your gp2x will of course work too.
I have source code available too:
http://www.freepascal.org/~daniel/gbaemu_concept_src.zip
I am encountering a few problems though:
- Sometimes the emulation is fast, often it is slow, the ARM940 seems to work very slow in such a case. I have no idea what is going on here, but probably I am not setting up the ARM940 correctly so it has poor performance, depending on the initial state when the emulator start.
- Running some programs before my emulator may cause my 940 code not to start at all. Again, my 940 initialization is probably incomplete.
Are there any ARM940 guru's on these boards that possibly might have an idea?
I've written my program on the GP2X.
Emulators like GpSp for the Gameboy Advance also emulate the cpu. My question is "why?!", because the Gp2x has 2 ARM processors on board, so it seems nonsense to emulate an ARM processor.
So, I started doing some coding, seeing wether I could run a GBA rom on the native processor. I took a ROM from Francesco Lombardi's FPC4GBA project and tried to get it running on the Gp2x.
This now works. Don't expect an emulator, because the current program is barely worth such a description, and will probably not run anything besides this ROM (the only thing it emulates, in a primitive way, is GBA video mode 4). No BIOS, or any other hardware is emulated. But it runs the ROM, directly on the ARM920. The ARM940 runs the GBA mode 4 emulation.
The potential could be efficient (more than) full speed emulation with low battery drain, but likely less accurate emulation is possible (i.e. forget about clock cycle perfect emulations).
You can download the result here:
http://www.freepascal.org/~daniel/gbaemu_concept.zip
It contains a fpcLogo.gba ROM, which will run on your GBA or emulator.
Unzip it on your SD and run it, it runs on your Gp2x. There is no way to exit the emulation, the only way to stop it is to kill it. Powercycling your gp2x will of course work too.
I have source code available too:
http://www.freepascal.org/~daniel/gbaemu_concept_src.zip
I am encountering a few problems though:
- Sometimes the emulation is fast, often it is slow, the ARM940 seems to work very slow in such a case. I have no idea what is going on here, but probably I am not setting up the ARM940 correctly so it has poor performance, depending on the initial state when the emulator start.
- Running some programs before my emulator may cause my 940 code not to start at all. Again, my 940 initialization is probably incomplete.
Are there any ARM940 guru's on these boards that possibly might have an idea?