gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Hardware > Emulators (NOT piracy)

#3633 - Grumps - Mon Mar 03, 2003 3:27 pm

Are there ANY emulators that have source code available? If I told you what I'm planning, you'd only laugh! So I'll leave it there for now.
TIA.

#3634 - Lord Graga - Mon Mar 03, 2003 3:42 pm

Nearly all the emu's around is open-source!

#3635 - Grumps - Mon Mar 03, 2003 4:00 pm

So which is the closest to 100%? Do the GBA ones work under DOS, or is in Windows+DirectX?

#3636 - Lord Graga - Mon Mar 03, 2003 5:35 pm

I think Visualboy Advance is nice enough. Go away!

#3637 - Grumps - Mon Mar 03, 2003 5:38 pm

Sorry, I don't understand your post!
I like VBA under Windows, but I want to port an emu to another system.
Apart from Lord Graga, does anyone else know of available emu source?
Thanks.

#3639 - Lord Graga - Mon Mar 03, 2003 7:01 pm

Ohh, I thought you wanted to make a GBA emu for Windows :P

If you wan't to make a basic emu i recomend you to port:
Gameboy (color/mono) gnuboy
Neo Geo Pocket (It is a 6mhz CPU, the cound CPU is 4 mhz) Neo Pop
Sega Genesis (i couldn't find a good emu, go look!)
MSX

If you wan't something hard then try this:
SNES (ZNES, SNES9X or the wierd one that they made for a SEGA, which is probably the best)
Wonderswan

#3643 - arog - Mon Mar 03, 2003 10:12 pm

VisualBoy Advance is open source. There is a DOS/SDL version
but I don't know if that's included in the source:
http://vboy.emuhq.com/downloads/VisualBoyAdvance-Dev-1.4.zip

- Aaron Rogers
HAM Tutorial

#3644 - Lord Graga - Mon Mar 03, 2003 10:23 pm

Aaron: I think HAM has excluded you from reading posts... :)

He want's info about what emulators that is good to be ported to AGB! doh!

#3655 - Grumps - Tue Mar 04, 2003 8:26 am

Yep, I found the source for VBA. It doesn't look too difficult to make this port now. Thanks for the directions.

#3679 - arog - Wed Mar 05, 2003 1:24 am

" Yep, I found the source for VBA. It doesn't look too difficult to
make this port now. Thanks for the directions."

> Aaron: I think HAM has excluded you from reading posts... :)
> He want's info about what emulators that is good to be ported
> to AGB! doh!

Oooh! Badda-bing badda-boom. Look who's right now.
I want a written formal apology or 1 million dollars! :- )

Maybe it's time for you to start working with HAM?!

- Aaron Rogers
HAM Tutorial

#3690 - Grumps - Wed Mar 05, 2003 8:28 am

Ah, I see the confusion.
Some people thought I wanted source code for emulators that would run on the GBA, and other people thought I wanted GBA emulator source to port to another platform. Well, it was the latter.
I'll share that $1M with you.

#3704 - Lord Graga - Wed Mar 05, 2003 6:43 pm

*Lord Graga pats Arog on his back as a excuse*

#3713 - mbcook - Thu Mar 06, 2003 3:21 am

Personally, I'd like to see a full GBA emulator for the GBA. Sure it would be pointless and slow, but it'd be geeky as hell. But to count it would have to decode all instructions, hardware accesses, etc. No "pass it through" stuff.

Very geeky.
_________________
--Michael

#3715 - animension - Thu Mar 06, 2003 5:56 am

You could even have the emulator load itself load itself load itself on the GBA. I wonder how many nested emulations one could do with that? The most I have ever seen in nested emulation is 5.

It's "Geek" with a captal G.
_________________
"Beer is proof that God loves us and wants us to be happy."
-- Benjamin Franklin

#3717 - Grumps - Thu Mar 06, 2003 9:17 am

Is the ARM (within the GBA) always in little endian mode?
And the Intel Pentium, is this big endian?

#3719 - tepples - Thu Mar 06, 2003 1:18 pm

mbcook wrote:
Personally, I'd like to see a full GBA emulator for the GBA.

I don't think that's possible. You can only emulate a machine with less memory than the one the emulator runs on. (No arguments about Turing completeness please; real computers are linear bounded automata rather than Turing machines.) It's possible to get away with emulating a PC on a PC because a PC's RAM is expandable: a 64 MB PC can run popular programs, but it's also possible to make a 128 MB PC. The GBA, by contrast, has only 384 KB of RAM. Emulating EWRAM using a swap file on the flash chip would wear the flash chip's sectors out too quickly.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#3724 - mbcook - Thu Mar 06, 2003 5:01 pm

Yeah, it's unfeasable, but it'd be cool. That said, even if it was possible, I wouldn't waste my time to make it.

As for the big-endian thing, I don't know about arm, but x86s are little-endian (IIRC), PPCs are big-endian (again, IIRC).
_________________
--Michael

#3725 - Grumps - Thu Mar 06, 2003 5:41 pm

Yeah. Form what I've dug up today, it would appear that the ARM (on the GBA) runs little-endian (or so it appears using the memory dump facility of VBA).

And from the Pentium4 data sheet, it looks like it can run either, but is set shortly after it boots. And again, this would appear to be little-endian (from playing with good old DOS debug).

This is all what I like to see, because my target platform is also running little-endian.

I seem to recall that Motorola CPUs all tended to be big-endian, I guess this is the reason behind the PPCs endianess.

#3731 - ampz - Thu Mar 06, 2003 10:00 pm

Oh, there are several ARM7 CPU's running in big endian mode. I've been working with two of them.

#3732 - Grumps - Thu Mar 06, 2003 10:27 pm

But the GBA? Little-endian?

#3744 - tom - Fri Mar 07, 2003 12:07 pm

the gba's cpu is a little endian