Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: fb39ca4 on July 07, 2010, 06:16:07 pm

Title: GBA emulator for nspire?
Post by: fb39ca4 on July 07, 2010, 06:16:07 pm
Would it be possible to emulate a GBA on the nspire?

If speed is an issue, instead of emulating the GBA, could a recompiler be made? GBAs have ARM7 processors, which I believe are backwards compatible with ARM9s. On a computer, the ROM could have all its memory addresses changed to work on the nspire, and include extra code to convert the display image to grayscale.

I don't know much about ASM, this is just an idea I'm putting out.
Title: Re: GBA emulator for nspire?
Post by: Ancient Power on July 07, 2010, 06:18:16 pm
calc84 said it was possible, and it seems very possible hardware-wise, but nobody has tried to make it yet
Title: Re: GBA emulator for nspire?
Post by: DJ Omnimaga on July 07, 2010, 06:38:04 pm
If I recall correctly, Calc84 told me if such thing happened, it would be the TI-Boy SE of the Nspire. What he meant by that is that like TI-Boy SE, it would only emulate a bunch of games and games using some special effects would not work properly. Some effects would just be beyond the Nspire capabilities, like some GB effects on the 83+SE/84+ calcs.
Title: Re: GBA emulator for nspire?
Post by: calc84maniac on July 07, 2010, 06:46:20 pm
If it was just the ARM CPU code in the ROM we had to worry about, it might not be a very big deal. But there's also all of the other hardware that needs to be dealt with at the same time, that the ROM expects to work in a certain way. Also, the graphics hardware is quite complicated -- most of the time we're not just dealing with a bitmap that has to be converted to grayscale, it is also possible to display 4 tilemaps at the same time, a ton of sprites, and even scaled/rotated maps and sprites are supported.
Title: Re: GBA emulator for nspire?
Post by: DJ Omnimaga on July 07, 2010, 08:37:05 pm
gah I can't imagine how hard it must be to emulate all that stuff x.x, especially if, for example, you wanted to emulate Doom or 007 Nightfire x.x
Title: Re: GBA emulator for nspire?
Post by: kyllopardiun on December 06, 2011, 07:16:20 am
Now that exists the CX, wouldn't it be easier to do the GBA for this new nspire?
Title: Re: GBA emulator for nspire?
Post by: Yeong on December 06, 2011, 07:17:56 am
I heard that cx hardware is good enough to emulate gba. :D
Title: Re: GBA emulator for nspire?
Post by: calc84maniac on December 06, 2011, 10:43:46 am
The only thing that would be easier on the CX would be not having to convert the color into grayscale. It still requires a lot of power, as I detailed a few posts above this one.
Title: Re: GBA emulator for nspire?
Post by: ralphdspam on December 06, 2011, 12:03:41 pm
You also have to emulate the GB/GBC's modified z80 core as the secondary processor.

Also, the graphics hardware is quite complicated
Yes, it is.

It's not impossible, but the people who are willing to make the emulator probably already had the idea anyway.  Most of these emulator requests turn into, "this is the hardware you have to emulate, but nobody has done it yet," type topics.
Title: Re: GBA emulator for nspire?
Post by: JosJuice on December 06, 2011, 12:13:01 pm
You also have to emulate the GB/GBC's modified z80 core as the secondary processor.
That processor can't be accessed by games running in GBA mode as far as I know. The only way for games to use it is to be a GB/GBC game, and we already have an emu for that.
Title: Re: GBA emulator for nspire?
Post by: ralphdspam on December 06, 2011, 12:22:44 pm
You also have to emulate the GB/GBC's modified z80 core as the secondary processor.
That processor can't be accessed by games running in GBA mode as far as I know. The only way for games to use it is to be a GB/GBC game, and we already have an emu for that.
I heard that you're able to use it as a sound controller, but I'm not entirely sure.
Wait, that wouldn't make sense.
Title: Re: GBA emulator for nspire?
Post by: calc84maniac on December 06, 2011, 12:23:32 pm
You also have to emulate the GB/GBC's modified z80 core as the secondary processor.
That processor can't be accessed by games running in GBA mode as far as I know. The only way for games to use it is to be a GB/GBC game, and we already have an emu for that.
Yes, this is true. The only part of the GBC hardware that the GBA could be said to use would be the sound chip.
Title: Re: GBA emulator for nspire?
Post by: DJ Omnimaga on December 06, 2011, 03:02:16 pm
Basically, as I said once before, GBA emulation on the Nspire series would be like GB emulation from the first version of TI-Boy SE on the 84+ (the one that required extra RAM pages): lots of glitches and unsupported graphical effects. I think for now the best thing would be to try Sega Genesis/Megadrive emulation and maybe SNES, although it might be problematic for games like Star Ocean or Star Fox that uses special chips.
Title: Re: GBA emulator for nspire?
Post by: Keoni29 on December 08, 2011, 01:39:12 pm
Even my nintendo DS can emulate a snes :P The nspire runs at almost 3 times higher clock frequencies.
Title: Re: GBA emulator for nspire?
Post by: DJ Omnimaga on December 27, 2011, 03:02:34 am
But doesn't the DS have the hardware to emulate those games? Calcs probably lacks any video card or chip that are required for such intensive tasks. Of course A SNES emu on the Nspire would be doable and could even have speed up functions, though.
Title: Re: GBA emulator for nspire?
Post by: Yeong on December 29, 2011, 12:57:54 pm
I always thought that SNES and GBA graphics are almost same?
Title: Re: GBA emulator for nspire?
Post by: calc84maniac on December 29, 2011, 01:04:10 pm
I don't know much about the SNES graphics capabilities in comparison to GBA, but I do know that the SNES has a much slower CPU, which I think is only effectively 2.68 MHz. The GBA, on the other hand, has a 16.78MHz processor.
Title: Re: GBA emulator for nspire?
Post by: willrandship on December 29, 2011, 02:52:59 pm
The graphics are very similar looking, but the hardware is different as are the capabilities. For one thing, the SNES and GBA have the same color range (65535 colors IIRC) but the SNES can only use a 256-color pallete at any time, a choice from that color range, where the GBA can use them all simultaneously.

Also, GBA emulation is not really possible on the DS without certain allowances. Note that the only GBA games run on the DS not to use extra hardware (google DSTWO flash cart) were actual games run through Slot 2. This is because it runs the actual GBA hardware inside, making the job significantly easier. The DSTWO adds a 500mhz cpu contained in the cart which helps even more. The DS can't really emulate the GBA by itself, as far as I've seen. The hardware isn't up to snuff.

Note that accessing the GBA hardware is (supposedly, I'm not going to stick my neck out here in case someone came up with new stuff) technically incapable of running the GBA hardware form from the DS card slot, which would be more akin to emulation.
Title: Re: GBA emulator for nspire?
Post by: chattahippie on December 29, 2011, 03:20:56 pm
I always thought that SNES and GBA graphics are almost same?
SNES is a 16-bit system
GBA is a 32-bit system

So, GBA is technically capable of better graphics
Title: Re: GBA emulator for nspire?
Post by: willrandship on December 29, 2011, 03:41:06 pm
That's not technically true, since the GBA screen is limited to 32,768 colors. The Hardware is theoretically capable of addressing more, but the screen isn't, so the GBA is limited to the same overall color pallete as the SNES, with the exception of the pallete limitation.
Title: Re: GBA emulator for nspire?
Post by: Yeong on December 29, 2011, 06:36:27 pm
so.... it's not possible to emulate GBA with cx?
Title: Re: GBA emulator for nspire?
Post by: calc84maniac on December 29, 2011, 08:56:53 pm
so.... it's not possible to emulate GBA with cx?
Sure it's possible, but nobody knows what performance it will have until somebody writes one.
Title: Re: GBA emulator for nspire?
Post by: willrandship on December 29, 2011, 11:33:11 pm
I wasn't trying to make a point on nspire capability of emulating the GBA. Calc84 would be a far superior source for that than me. I was just saying that the DS, while capable of SNES emulation, is not capable of true GBA emulation as we've seen thus far. Heck, it might even be capable of a TI-Boy style emulation, although no one has tried.