Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: Augs on July 12, 2012, 05:36:27 pm

Title: GBA emulator?
Post by: Augs on July 12, 2012, 05:36:27 pm
I am sure that it is possible to do a GBA emulator, I know it is hardware wise but maybe getting round the anti hack will be harder. What do you think?

(I am talking about an nspire)
Title: Re: GBA emulator
Post by: leafy on July 12, 2012, 05:56:09 pm
Hey Augs - before making new topics, I'd recommend you use that search feature up in the top right. I've found a thread where calc84 (creator of Ti-Boy SE and other emulators for calc) talks about the development process of such an emulator right here:

http://ourl.ca/6307

so maybe you could check that out?
Title: Re: GBA emulator
Post by: apcalc on July 12, 2012, 08:45:46 pm
Yes, I believe it was said that a GBA emulator would be relatively slow, even for the Nspire.  Nevertheless, this would still be great to see!
Title: Re: GBA emulator
Post by: TheNlightenedOne on July 12, 2012, 09:09:01 pm
I'm seriously going to make a GBA emulator for the TI-Nspire. Although I'll need to look into ROM file structures, etc. But I'm going to do it anyway...
Title: Re: GBA emulator
Post by: DJ Omnimaga on July 12, 2012, 10:46:38 pm
Heya and welcome here Augs. By the way Calc84maniac worked on such emulator back in Early 2010, shortly after releasing gbc4nspire. It was incredibly slow and he lost the files, but then recently he tried making another one and in its early state it seemed to run at better speed, even if slower than the real thing.
Title: Re: GBA emulator
Post by: Augs on July 15, 2012, 03:12:53 pm
Heya and welcome here Augs. By the way Calc84maniac worked on such emulator back in Early 2010, shortly after releasing gbc4nspire. It was incredibly slow and he lost the files, but then recently he tried making another one and in its early state it seemed to run at better speed, even if slower than the real thing.

You are awesome. I would love to see this!
Title: Re: GBA emulator
Post by: Augs on July 15, 2012, 03:13:49 pm
I'm seriously going to make a GBA emulator for the TI-Nspire. Although I'll need to look into ROM file structures, etc. But I'm going to do it anyway...

I hope it happens. I really want one for my nspire. It would be awesome
Title: Re: GBA emulator
Post by: DJ Omnimaga on July 15, 2012, 03:16:17 pm
By the way you can multi-quote posts by clicking quote in one single message, so you don't need to post two messages to quote two different posts ;)

Also annoyingcalc got an alpha build of Calc84maniac's new emu I think :O. However I doubt it's really far into development yet.
Title: Re: GBA emulator
Post by: annoyingcalc on July 15, 2012, 03:31:25 pm
By the way you can multi-quote posts by clicking quote in one single message, so you don't need to post two messages to quote two different posts ;)

Also annoyingcalc got an alpha build of Calc84maniac's new emu I think :O. However I doubt it's really far into development yet.
Its not perfect yet but Im amazed at how good it is, I like the feature of choosing how many frame are skipped
Title: Re: GBA emulator
Post by: DJ Omnimaga on July 15, 2012, 03:57:30 pm
Oh that's nice then. I wonder if he distributes betas/alphas? O.O Also what game does it run?
Title: Re: GBA emulator
Post by: annoyingcalc on July 15, 2012, 04:19:19 pm
I have wolfenstein 3d pokemon saphire mario world, etc it runs every game I have tried and btw if calc84 approves I could send you a copy of it (only if calc84 says ok)
Title: Re: GBA emulator
Post by: Augs on July 15, 2012, 04:24:09 pm
I have wolfenstein 3d pokemon saphire mario world, etc it runs every game I have tried and btw if calc84 approves I could send you a copy of it (only if calc84 says ok)

Good, could It also be for the nspire? Or is it just for 84?
Title: Re: GBA emulator
Post by: annoyingcalc on July 15, 2012, 04:25:49 pm
? it is for the nspire, the 84 version is available for download(it only runs game boy games), the gba emulator for nspire only works on the nspire cx
Title: Re: GBA emulator?
Post by: Augs on July 15, 2012, 04:39:06 pm
? it is for the nspire, the 84 version is available for download(it only runs game boy games), the gba emulator for nspire only works on the nspire cx

Could you please send me it, I have a nspire cx
Title: Re: GBA emulator?
Post by: annoyingcalc on July 15, 2012, 04:44:32 pm
I will have to ask calc84maniac before I can send it to anyone, he wants to release it before next week though
Title: Re: GBA emulator?
Post by: AzNg0d1030 on July 15, 2012, 05:15:09 pm
annoyingcalc, has he implemented states into the alpha yet?
Title: Re: GBA emulator?
Post by: annoyingcalc on July 15, 2012, 05:16:55 pm
yes
Title: Re: GBA emulator?
Post by: squidgetx on July 15, 2012, 05:21:14 pm
Even the equivalent of TiBoy for 84 would be awesome.

Are there any (potential) resolution issues? For me, that was the only thing that made tiboy hard to use to actually play games.
Title: Re: GBA emulator?
Post by: annoyingcalc on July 15, 2012, 05:29:01 pm
agreed with the resulution but no, there arent any resulution problems :D
Title: Re: GBA emulator?
Post by: calc84maniac on July 15, 2012, 08:20:55 pm
The only resolution problems are that the fullscreen resolution of 320x240 isn't an exact multiple of the original resolution, but the option is included to run at the original 240x160 resolution instead.

As for a release, I still need to fix some issues with save states and make sure that cheats work, and there might be some other things to work out as well. I'd rather not have annoyingcalc's build distributed because it does have some glitches that can crash/reset the calculator.
Title: Re: GBA emulator?
Post by: annoyingcalc on July 15, 2012, 08:26:28 pm
^^ I crash a lot, mainly when im in a game then I switch to another game.
Title: Re: GBA emulator?
Post by: calc84maniac on July 15, 2012, 08:27:09 pm
Wait really? I need to look into that :P
Title: Re: GBA emulator?
Post by: annoyingcalc on July 15, 2012, 08:31:16 pm
x.x

I wonder what good homebrew games I can find

And also Im waiting for an omni emblem ips patch >.>
Title: Re: GBA emulator?
Post by: DJ Omnimaga on July 16, 2012, 12:06:24 am
Yeah if it's unstable it would be best to not distribute the build now, because on a TI-Nspire, an unstable program can actually damage a calculator permanently.
Title: Re: GBA emulator?
Post by: Lionel Debroux on July 16, 2012, 03:44:34 am
Quote
because on a TI-Nspire, an unstable program can actually damage a calculator permanently.
Normally, less so than on a TI-Z80 or TI-68k :)

On the one side, the Nspire has a "reformat entire memory" option in the maintenance menu, unlike the members of the TI-Z80 and TI-68k series. And even if both the boot2 and the diags were erased / invalid on a given Nspire, the serial port support of the boot1 enables transferring proper boot2 and diags, through a fairly common piece of hardware that costs $15-$20. Sure, without a valid boot1, the calculator is toast - but in commercial (production) models, the boot1 is not writable in the first place, without hardware modifications :)

On the other side, several members of the community have TI-Z80 and/or TI-68k calculators that won't boot, and either no known software method can rescue them, or it is known that they cannot be rescued through software. Unless in-place reprogramming of the Flash chip is possible without damaging the calculator's electrical system and the Flash memory, de-soldering and re-soldering the chip is necessary... but then the chip probably won't survive the heat.
Title: Re: GBA emulator?
Post by: Yeong on July 16, 2012, 09:19:31 am
wait so the emu comes next week? Great! :D
Gotta get my AW2 ready ;D
Title: Re: GBA emulator?
Post by: Yeong on July 18, 2012, 01:06:51 pm
just a question 2 calc84: by cheat, you mean memory editor or like gameshark and stuff?
Title: Re: GBA emulator?
Post by: calc84maniac on July 18, 2012, 01:27:16 pm
I'm pretty sure they're Action Replay codes.
Title: Re: GBA emulator?
Post by: Yeong on July 19, 2012, 10:24:14 am
ah, AR codes. :)
Can't wait to have it on my calc ;D
Title: Re: GBA emulator?
Post by: DJ Omnimaga on July 19, 2012, 02:13:03 pm
Quote
because on a TI-Nspire, an unstable program can actually damage a calculator permanently.
Normally, less so than on a TI-Z80 or TI-68k :)

On the one side, the Nspire has a "reformat entire memory" option in the maintenance menu, unlike the members of the TI-Z80 and TI-68k series. And even if both the boot2 and the diags were erased / invalid on a given Nspire, the serial port support of the boot1 enables transferring proper boot2 and diags, through a fairly common piece of hardware that costs $15-$20. Sure, without a valid boot1, the calculator is toast - but in commercial (production) models, the boot1 is not writable in the first place, without hardware modifications :)

On the other side, several members of the community have TI-Z80 and/or TI-68k calculators that won't boot, and either no known software method can rescue them, or it is known that they cannot be rescued through software. Unless in-place reprogramming of the Flash chip is possible without damaging the calculator's electrical system and the Flash memory, de-soldering and re-soldering the chip is necessary... but then the chip probably won't survive the heat.
Weird, because often I saw more cases of people with crashed Nspires that didn't seem to want to recover lately than with 83+. Maybe just a coincidence then.

Also annoyingcalc or calc84maniac do you think you could post a screenshot of how the emulator looks like so far?
Title: Re: GBA emulator?
Post by: Hayleia on July 19, 2012, 02:26:39 pm
Also annoyingcalc or calc84maniac do you think you could post a screenshot of how the emulator looks like so far?

There is this one on TI Planet, from those news here http://tiplanet.org/forum/viewtopic.php?p=126825#p126825

(http://tiplanet.org/forum/gallery/image.php?album_id=13&image_id=1156&view=no_count)
Title: Re: GBA emulator?
Post by: DJ Omnimaga on July 19, 2012, 02:52:48 pm
Ok thanks. I wonder why this one was not posted here D:
Title: Re: GBA emulator?
Post by: Netham45 on July 19, 2012, 03:03:38 pm
hax.

Edit: This looks really cool. :D Good job.
Title: Re: GBA emulator?
Post by: Darl181 on July 19, 2012, 07:13:24 pm
Ok thanks. I wonder why this one was not posted here D:
I think it was put up in IRC initially. I remember seeing it here.
Edit: found it in browser history, it's on rfg
http://img.removedfromgame.com/imgs/IMG_21051
Title: Re: GBA emulator?
Post by: parserp on July 20, 2012, 12:27:47 am
Also annoyingcalc or calc84maniac do you think you could post a screenshot of how the emulator looks like so far?

There is this one on TI Planet, from those news here http://tiplanet.org/forum/viewtopic.php?p=126825#p126825

(http://tiplanet.org/forum/gallery/image.php?album_id=13&image_id=1156&view=no_count)
Dude, that is totally epic. Great work so far! :D
Title: Re: GBA emulator?
Post by: Deep Toaster on July 20, 2012, 12:43:19 am
Glad you're still working on it—that is one awesome project.
Title: Re: GBA emulator?
Post by: blweldon2 on July 23, 2012, 11:28:02 pm
It looks pretty good! I am curious how well it would run on my touchpad nspire though. It has a minimal amount of RAM and that grayscale screen. I think i would rather have it on my CX. :P
Title: Re: GBA emulator?
Post by: calc84maniac on July 23, 2012, 11:30:10 pm
It looks pretty good! I am curious how well it would run on my touchpad nspire though. It has a minimal amount of RAM and that grayscale screen. I think i would rather have it on my CX. :P
Well, as I mentioned in another topic, only the CX is supported anyway (mainly because of the larger RAM). It's also nice to be able to overclock higher.
Title: Re: GBA emulator?
Post by: blweldon2 on July 23, 2012, 11:35:08 pm
It looks pretty good! I am curious how well it would run on my touchpad nspire though. It has a minimal amount of RAM and that grayscale screen. I think i would rather have it on my CX. :P
Well, as I mentioned in another topic, only the CX is supported anyway (mainly because of the larger RAM). It's also nice to be able to overclock higher.
Ah. Okay. Thanks for clarifying! :)
Title: Re: GBA emulator?
Post by: annoyingcalc on July 24, 2012, 10:59:15 am
It looks pretty good! I am curious how well it would run on my touchpad nspire though. It has a minimal amount of RAM and that grayscale screen. I think i would rather have it on my CX. :P
Well, as I mentioned in another topic, only the CX is supported anyway (mainly because of the larger RAM). It's also nice to be able to overclock higher.
calc84, load 1 game from another exit that game then load another then CRASH

and its unstable I had to reisntall my os
Title: Re: GBA emulator?
Post by: njaddison on July 24, 2012, 06:08:29 pm
It looks pretty good! I am curious how well it would run on my touchpad nspire though. It has a minimal amount of RAM and that grayscale screen. I think i would rather have it on my CX. :P
Well, as I mentioned in another topic, only the CX is supported anyway (mainly because of the larger RAM). It's also nice to be able to overclock higher.

Awww, this means that I can't try it out on nspire_emu. I don't have a cx, but maybe I can beg my parents for one for Geometry. Preferably a CX CAS.
Title: Re: GBA emulator?
Post by: Deep Toaster on July 24, 2012, 06:20:08 pm
I don't have a cx, but maybe I can beg my parents for one for Geometry. Preferably a CX CAS.
Seems a bit of a stretch (especially the CAS, since you're usually not supposed to use CAS calculators until past calculus) ::) Good luck though :D
Title: Re: GBA emulator?
Post by: calc84maniac on July 25, 2012, 11:20:50 am
It looks pretty good! I am curious how well it would run on my touchpad nspire though. It has a minimal amount of RAM and that grayscale screen. I think i would rather have it on my CX. :P
Well, as I mentioned in another topic, only the CX is supported anyway (mainly because of the larger RAM). It's also nice to be able to overclock higher.
calc84, load 1 game from another exit that game then load another then CRASH

and its unstable I had to reisntall my os
By "exit" do you mean the entire emulator? Or do you mean just load 3 different ROMs in a row.

Also, were you overclocking the AHB? That's the only thing that's ever caused me to lose my OS, I think.
Title: Re: GBA emulator?
Post by: DJ Omnimaga on July 25, 2012, 12:24:18 pm
Also if Touchpad/Clickpad model support was added, an issue is that most games got a lot of colors so it would be hard to distinguish some stuff in 16 level grayscale mode. Also the screen blurriness would be an even bigger problem than it was on gbc4nspire.

That reminds me, aside from the resolution, I wonder if Doom for the GBA will look better than the Nspire one? I never tried the GBA port.
Title: Re: GBA emulator?
Post by: annoyingcalc on July 25, 2012, 12:41:08 pm
It looks pretty good! I am curious how well it would run on my touchpad nspire though. It has a minimal amount of RAM and that grayscale screen. I think i would rather have it on my CX. :P
Well, as I mentioned in another topic, only the CX is supported anyway (mainly because of the larger RAM). It's also nice to be able to overclock higher.
calc84, load 1 game from another exit that game then load another then CRASH

and its unstable I had to reisntall my os
By "exit" do you mean the entire emulator? Or do you mean just load 3 different ROMs in a row.

Also, were you overclocking the AHB? That's the only thing that's ever caused me to lose my OS, I think.
No I loaded 3 roms in a row (I meant exit the game)
and I have not overclocked my AHB
Title: Re: GBA emulator?
Post by: Yeong on July 25, 2012, 02:40:51 pm
what was AHB again?
Title: Re: GBA emulator?
Post by: calc84maniac on July 25, 2012, 02:52:30 pm
It's the memory bus, basically.
Title: Re: GBA emulator?
Post by: TheNlightenedOne on July 25, 2012, 02:54:09 pm
I have no idea what this means, but it officially stands for AMBA High-speed Bus.
Title: Re: GBA emulator?
Post by: critor on July 25, 2012, 04:19:03 pm
That reminds me, aside from the resolution, I wonder if Doom for the GBA will look better than the Nspire one? I never tried the GBA port.

I tried.
It's much slower, but not as slow as the Prizm port. ;)

The graphics aren't as good because of the inferior GBA screen resolution.

It seems to be less colorfull, but it might be because of the use of different textures.

I've also noticed some physic differences in the 1st level.
Title: Re: GBA emulator?
Post by: DJ Omnimaga on July 25, 2012, 06:33:50 pm
Ah I see. Do floor and ceilings have textures at all? If not, then maybe it's based on the SNES port. I know also in some ports the camera moves up and down while walking, but in the SNES version, it doesn't. Only the gun moves a bit.
Title: Re: GBA emulator?
Post by: critor on July 25, 2012, 07:05:18 pm
Also, were you overclocking the AHB? That's the only thing that's ever caused me to lose my OS, I think.


Thank you for your report.

I've just updated Nover.

You can still try to overclock as much as you want, but you'll be warned of the danger above 75MHz for the AHB instead of 80MHz.


I should help new overclockers avoiding problems ;)

So best assumed stable config for all TI-Nspire CX is now 222MHz CPU and 75MHz AHB.

You may be able to increase the CPU frequency even more without any stability problem on your handheld. Don't fear anything: you'll just get a reboot if you set it too high.

But you mustn't increase the AHB frequency higher than that, as there is a high probability of corrupting your filesystem, which will cause you more trouble than a simple reboot...


Download Nover:
http://tiplanet.org/forum/archives_voir.php?id=3890
Title: Re: GBA emulator?
Post by: DJ Omnimaga on July 25, 2012, 07:07:54 pm
So there are calcs who could go up to 80 and others to 75? I hope in the future TI won't change that so it can only go up to half of that or something... (or stuff like the 84+ extra RAM pages hardware change)
Title: Re: GBA emulator?
Post by: critor on July 25, 2012, 07:19:53 pm
So there are calcs who could go up to 80 and others to 75? I hope in the future TI won't change that so it can only go up to half of that or something... (or stuff like the 84+ extra RAM pages hardware change)

Not sure... To my advice, 80 MHz AHB just causes problems, sooner or later.

But there are calcs whose CPU can be set at 240MHz and others at only 222MHz. That's why my CPU warning starts after 222MHz.
Title: Re: GBA emulator?
Post by: DJ Omnimaga on July 25, 2012, 07:23:30 pm
I thought the max was 150? O.O
Title: Re: GBA emulator?
Post by: critor on July 25, 2012, 09:36:21 pm
I thought the max was 150? O.O

Not on CX.
Max is 300
Title: Re: GBA emulator?
Post by: DJ Omnimaga on July 25, 2012, 10:12:54 pm
Lol wow, and what's the default speed? I remember on the regular Nspire it was 90 on older OSes and 120 on newer ones, overclockable to 150. 300 is like more than 3 times the PRIZM max speed (94.3 MHz, for now).
Title: Re: GBA emulator?
Post by: calc84maniac on July 25, 2012, 10:14:32 pm
300 isn't actually achievable on any CX that we know of, at least not without instantly crashing. That's just the maximum we can attempt to do. Right now I think the default is 132MHz.
Title: Re: GBA emulator?
Post by: DJ Omnimaga on July 25, 2012, 10:31:41 pm
Oh ok I see. I was starting to wonder if we could emulate the Nintendo 64 now :P
Title: Re: GBA emulator?
Post by: xacto on July 28, 2012, 09:13:26 pm
That would be totally awesome!
Title: Re: GBA emulator?
Post by: Camdenmil on July 29, 2012, 12:07:15 pm
I ran project 64 on an old 800 Mhz Pentium 3 based computer yesterday to see how it would perform. It was really slow. The nspire's lack of 3d hardware would make performance probably less than 1 fps. The GBA has like 256k ram and 128k vram AFAIK. Why doesn't the GBA emulator not run on non-cx nspires?
Title: Re: GBA emulator?
Post by: TIfanx1999 on July 29, 2012, 12:19:21 pm
From the previous page:
It looks pretty good! I am curious how well it would run on my touchpad nspire though. It has a minimal amount of RAM and that grayscale screen. I think i would rather have it on my CX. :P
Well, as I mentioned in another topic, only the CX is supported anyway (mainly because of the larger RAM). It's also nice to be able to overclock higher.
Title: Re: GBA emulator?
Post by: calc84maniac on July 29, 2012, 02:03:47 pm
He's wondering what takes so much RAM. For one thing, the emulator code is pretty large, and it needs a bit of space for the dynamic recompiler. In addition, the entire GBA ROM needs to be loaded into RAM, which is the main issue.
Title: Re: GBA emulator?
Post by: atiatinini on July 31, 2012, 07:30:48 pm
So, any ETA on the release? :D
Title: Re: GBA emulator?
Post by: Hayleia on August 01, 2012, 02:21:01 am
So, any ETA on the release? :D
Usually, asking for the release is not a good idea because calc84 is working hard to solve bugs and if he release it now, you would complain afterwards. Also, people begging for the release are often annoying to the coders. Everyone here is waiting for the release and calc84 knows it, no need to put more pression on him ;)
(But yeah, I have to go to a stupid wedding on Saturday, that would be great if the emu was out :P)
Title: Re: GBA emulator?
Post by: Camdenmil on August 01, 2012, 08:47:29 pm
He's wondering what takes so much RAM. For one thing, the emulator code is pretty large, and it needs a bit of space for the dynamic recompiler. In addition, the entire GBA ROM needs to be loaded into RAM, which is the main issue.
Oh, I forgot about the ROM needing to be in ram. And wow, a dynamic recompiler. What kind of speed do you get with overclocking?
Title: Re: GBA emulator?
Post by: calc84maniac on August 01, 2012, 10:19:06 pm
The speed depends on the game. When overclocking, most games that I've tried run around full speed with a bit of frameskip, though some games aren't fullspeed even with frameskip.
Title: Re: GBA emulator?
Post by: DJ Omnimaga on August 02, 2012, 12:58:41 am
So, any ETA on the release? :D
Usually, asking for the release is not a good idea because calc84 is working hard to solve bugs and if he release it now, you would complain afterwards. Also, people begging for the release are often annoying to the coders. Everyone here is waiting for the release and calc84 knows it, no need to put more pression on him ;)
(But yeah, I have to go to a stupid wedding on Saturday, that would be great if the emu was out :P)
Also if he works too much on this, Runer112 will complain about lack of TI-Boy SE updates and annoyingcalc will become less patient for Project M updates. ;D

As for speed, are there games that becomes so slow that they are unplayable? One worry I had was 007 Nightfire, for example, which seems to have even more advanced graphics than Doom.

Also, will every GBA ROMs fit on a TI-Nspire CX? I don't remember the max size a game can be.
Title: Re: GBA emulator?
Post by: annoyingcalc on August 02, 2012, 01:12:00 am

annoyingcalc will become less patient for Project M updates. ;D


Also, will every GBA ROMs fit on a TI-Nspire CX? I don't remember the max size a game can be.

Hey, I havent been there in more than a year.
and the max is 32mb and you can zip roms to half their size
Title: Re: GBA emulator?
Post by: DJ Omnimaga on August 02, 2012, 01:25:51 am
I was just kidding annoyingcalc. :P Also thanks for the info. :)

Is Zipping supported on Calc84maniac's emu?
Title: Re: GBA emulator?
Post by: Reo on August 02, 2012, 07:18:43 am
Is Zipping supported on Calc84maniac's emu?
Yeah. I've actually found that some games that crash on start-up unzipped work fine while zipped.
Title: Re: GBA emulator?
Post by: Eiyeron on August 02, 2012, 07:30:08 am
Don't lose the sources ! ^^
Title: Re: GBA emulator?
Post by: calc84maniac on August 02, 2012, 09:55:16 am
Is Zipping supported on Calc84maniac's emu?
Yeah. I've actually found that some games that crash on start-up unzipped work fine while zipped.
You have a copy of the emulator? O_o Also, crashes for non-zipped ROMs sounds like an issue.
Title: Re: GBA emulator?
Post by: Reo on August 02, 2012, 09:58:35 am
Is Zipping supported on Calc84maniac's emu?
Yeah. I've actually found that some games that crash on start-up unzipped work fine while zipped.
You have a copy of the emulator? O_o Also, crashes for non-zipped ROMs sounds like an issue.
This bug happened on the GP2X Wiz version. I can't remember what didn't work, but I think it was Pokemon Emerald. I'm sure others have gotten it to work unzipped, so maybe it's just an issue with my dump.