Homebrew The Truth behind GBA emulation

  • Thread starter Thread starter Normmatt
  • Start date Start date
  • Views Views 39,864
  • Replies Replies 168
  • Likes Likes 1
Status
Not open for further replies.
The GBA bios isn't available in nds mode but you can have a custom bios running on the arm9 which would mean you could load up the gba bios assuming there isn't any problems relating to timing etc which would need to be recoded.

Unless DS games don't use their BIOS routines this would be a problem. The two aren't compatible with each other; you can't have one which is compatible with both because some of the SWI assignments have changed. If you load a custom BIOS to play GBA games then you can forget about playing DS games. I don't know what switching BIOSes is like but I imagine it's not such a painless procedure that you'd want to do it every time you decided to go between DS and GBA games.



iirc DSLinux uses a custom bios, It works by setting a custom arm9 bios address to 00000000 which gets reset to the default FFFF0000 on reset so there isn't any need to worry about breaking your nds.

You're right, I didn't notice that there was an option to switch between the two vector bases. Unfortunately this means giving up the first 16KB of ITCM for the GBA BIOS.

Well seeing as the gba didn't even have ITCM I wouldn't think that'd cause too many problems, theres also 16KB left for say the MPU instruction decoding code which should run quicker than from main ram and shouldn't be over 16kb if done properly anyway.
 
Very glad you joined up to post Exophase. We needed someone truly familiar with the GBA hardware to help clear up the confusion. In the past, you arrived when everybody thought full-speed GBA emulation on the PSP was impossible and proved them wrong, so if you feel that it's not possible on the DS then it would be best to take your word for it.

Ah well, misunderstandings happen, people get confused. As long as it's not front-page news anymore, it's not worth getting too worked up about.

For the record, I fully agree that a GBA emulator for the DS using full software emulation would be possible, but not at any playable speed, much like the port of the DS emulator to the PSP.
 
someone that knows coding and stuff should try to mke this cause it would be a very cool thing to not need your slot 2 card anymore
 
someone that knows coding and stuff should try to mke this cause it would be a very cool thing to not need your slot 2 card anymore

If i was to ever attempt it i'd just use a slot2 cart to store the rom and sram as it'd make it quicker as you wouldn't need to page the rom all the time and would be a simpler hypervisor mainly in that you'd only have to redirect the graphics and sound hardware.
 
how much time do you think it would take for someone to make a program that runs gba roms through slot 1?
 
Long enough. The DS has been out for 2-3 years IIRC and slot 1 cards for 1-2 years IIRC.

My opinion: Use a slot-2. We'll worry about it when its a necessary problem. Enough DS2 talk, it hasn't even been officially announced afaik. Don't hold out on buying a slot2 thinking eventually ur slot 1 will play GBA games. If you wanna play GBA games, either use VisualBoy on ur PC or get a slot2.
 
ok and whats the best slot 2 card out right now cause i have a m3 ds simply and i wanted to get the ez 3 in 1 or supercard sd which one should i get?
 
someone that knows coding and stuff should try to mke this cause it would be a very cool thing to not need your slot 2 card anymore


If i was to ever attempt it i'd just use a slot2 cart to store the rom and sram as it'd make it quicker as you wouldn't need to page the rom all the time and would be a simpler hypervisor mainly in that you'd only have to redirect the graphics and sound hardware.

If you already have a cart in Slot 2 with all the data on it why in the hell would you want to use a hypervisor to control it and use the DS to redirect everything when all it would take is a call to have it run natively from the GBA side of the DS? It would a completely pointless exercise, and besides which it goes against the whole "you can run GBA games from Slot 1" debate that you started because you're still running the GBA games from Slot-2.
 
ok and whats the best slot 2 card out right now cause i have a m3 ds simply and i wanted to get the ez 3 in 1 or supercard sd which one should i get?

I use a M3DS Lite for my GBA needs, but i would think that a EZ-Flash 3-in-1 would be a good choice, about €30-32(here) and both GBA and Rumble (to keep the blood flowing in your fingers
biggrin.gif
)

Not even gonna touch the -possible or not possible- discution.. but imho everything is possible (oups i touched it)
tongue.gif


you could run the VNC client on your DS and have a GBA emu running on your computer.. then in theory it could run from the slot1 card
smile.gif
 
What 's the difference between doing a dynarec emulator for the ds and using a hipervisor??
And don't say speed, i would like a more technical answer.

Dynamic recompilation translates opcodes at runtime (but before execution) so the program is literally converted to how it would be if the source code were compiled for the platform it is being run on. This makes it so it is translated into a native binary and so no emulation of the opcodes needs to be done with it at runtime.

A hypervisor basically remaps the memory and calls of a program but opcode emulation isn't required because the platform is the same.
 
ok and whats the best slot 2 card out right now cause i have a m3 ds simply and i wanted to get the ez 3 in 1 or supercard sd which one should i get?
Not in this thread, buddy.
tongue.gif


Just getting GBA to run from slot1 is not a worthwhile endeavor. Besides it not being worthwhile, whether its possible is debatable (the whole reasons behind this discussion)

However, on a slightly related note:
Passme works by doing everything DS, but reading through the GBA slot. Why is the reverse impossible? The DS slot is 16 bit and the GBA 8 bit, rite iirc so isn't it faster?
 
Meh. I agree with others, put that energy toward existing but barely breathing emulator projects. Honestly, if i play GBA these days its on my PSP. which can do all the stuff the DS cant... sure it would be more convenient to play them Slot-1. but there are other, quicker ways to get it done...
 
After having read 8 pages of this, it shocks me that still noone has seen the some of the many benefits of having a GBA Emulator, or whatever you wish to call it, running on the DS.

The only one people seem to have stumbled upon, which seems obvious as it was handed to you by the title of the original news entry is running GBA on a Slot-1 Device. However, there are numerous other benefits of running a GBA emulator in DS mode.

Nintendo in all their wonderfullly airheaded glory completely bowled over the possibility that people might actually WANT to play GBA games multiplayer on their DSes. While I'm not going to get into a technical discussion of how this would happen with an emulator (as this is all a discussion of whether or not a basic emulator would even work), this is one of the many benefits that *could* be realized by doing something like this. Another benefit is graphical enhancement, and full screen modes. Using software or hardware filters to increase the size of the screen to fill out a full DS screen, would provide a much more polished feel. Nintendo's own attempts here actually feel less polished than your average 25 cent screwdriver at your local thrift store.

Then there's the crossplatform playability options through multiplayer. Imagine being able to play multiplayer games over wifi from the DS, to someone emulating the game on Virtualboy a few hundred miles away. Then there's the added benefit of using the secondary screen for other things in the game. How about using it to control some games instead of the DS gamepad, some games could heavily benefit from this.

This part is pure speculation, as I only barely understand how backgrounds, sprites, and layers work on GBA games, but imagine being able to map one of the backgrounds to the secondary layer? From my understanding, some games put information screens on other background layers, making them inaccessible until you press a button. Using this method it would keep the information background layer on the other screen, allowing you to see the information you want, without ever having to pause the game. This would actually make GBA games (at least some) run in a dual screen mode, breathing new life into them.

It also provides the option of giving GBA homebrew devs access to some further hardware on the DS to have fun with. While this in and of itself may not be what some consider to be useful, people WILL use it, just like the number of devs that have begun to use the motion card, and the arkanoid controller, and DSerial, etc... devices that people don't always have access to, but some devs have chosen to use.

ALWAYS remember, when you provide other ways to do the same thing, you provide other methods to exploit the hardware, and software. You open new avenues for development, and play. Development like this, always broadens horizons, and only helps to improve the scene.

Having said that, I'm sure there are plenty of things wrong with what I've said, some things probably can't happen, and even more probably won't ever happen, but there's nothing wrong with wishful thinking, or providing options. Variety is the spice of life, as it were, and I would love to see some more variety to this scene.
 
I like pipe dreaming too. The DS cringes at SNES let alone emulating a GBA while also performing wifi network functions. I just think in all my humbleness that seeing one of the dozens of barely finished emulators for both DS and PSP actually getting out of "somewhat playable" and into the polishing phase would be in itself a small miracle.
 
I like pipe dreaming too. The DS cringes at SNES let alone emulating a GBA while also performing wifi network functions. I just think in all my humbleness that seeing one of the dozens of barely finished emulators for both DS and PSP actually getting out of "somewhat playable" and into the polishing phase would be in itself a small miracle.

True enough, like I said, it's a grand probability that it will never happen. I simply wanted to illustrate the MANY benefits that a GBA emulator would have, rather than "it works on slot-1."

Quite often I find myself speculating on the many things hardware CAN do, even to the point of considering crossplatform games that exploit the hardware of the system they're running on, and provide completely different experiences for that. Imagine a game designed to play, adhoc or infrastructure, on the DS, the PSP, GP2X, and any other major handheld platform out there, that creates a game specific to the hardware its on and allows everyone to play together, through that network? Ahh, pipe dreams, I know.

There's also the possibility of tapping into more of the hardware, that would allow faster and smoother gaming. There was a lib that was just recently released for the 3d core that allows people to cheat with 2d games and create games with a couple thousand sprites, rather than the very limited couple of hundred sprites the GBA hardware is otherwise capable of. Further exploits of the hardware ( not necessarily this one) may prove useful enough to make GBA emulation of this magnitude not only possible, but perhaps even easier than SNES emulation (doubtful, but hey, I'm pipe dreaming anyway).
 
Implications of piracy?? Come on, it's dead-easy to pirate DS and someone's worried about GBA piracy??

Also, wanting to run GBA through DS is a very lazy and cheap thing to want. You can just buy a cheap slot2 solution which does it better than emulation ever could.
That's exactly the reason why I don't believe that this has actually even been made yet.
 
Implications of piracy?? Come on, it's dead-easy to pirate DS and someone's worried about GBA piracy??

Also, wanting to run GBA through DS is a very lazy and cheap thing to want. You can just buy a cheap slot2 solution which does it better than emulation ever could.

That's exactly the reason why I don't believe that this has actually even been made yet.

That's because it hasn't been made...
 
There would be one great thing that would happen on gbatemp if this was ever released though. Whenever a noob asks if the can play gba roms we can now nicely tell him, to... gtfo and start learning to read. Wait, that's already happening. Oh well, gba on ds is still pretty cool, and the theory seems to be plausible.
 
Implications of piracy?? Come on, it's dead-easy to pirate DS and someone's worried about GBA piracy??

Also, wanting to run GBA through DS is a very lazy and cheap thing to want. You can just buy a cheap slot2 solution which does it better than emulation ever could.

That's exactly the reason why I don't believe that this has actually even been made yet.

That's because it hasn't been made...
ya, I just read the post where normmatt admitted it hasn't been made. I thought so. There was zero chance that that could be true. Let me reiterate it for those that didn't get it the first time: ZERO chance.
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum