Homebrew How flexible are TWL_FIRM and AGB_FIRM?

metroid maniac

An idiot with an opinion
OP
Member
Joined
May 16, 2009
Messages
2,081
Trophies
2
XP
2,619
Country
It's my understanding that TWL_FIRM and AGB_FIRM are the two firmware modes responsible for running DS/i software and GBA software on the 3DS.
How much is known about how these modes work? Would they be considered emulation or running natively? I expect the latter but I'm interested in specifics.

Given that, what exactly can be done in these two firmware modes? Would features more consistent with emulation such as button remapping or save stating be physically possible?
 

Hashtastrophe

Wizard
Member
Joined
Jan 12, 2015
Messages
442
Trophies
0
Location
Yes that kind of wizard.
XP
435
Country
Canada
They are running natively. 3Dbrew will have most, if not all, of the information you're interested in. I don't know enough about the system to tell you if save states or remapping buttons is possible. I'm assuming a no unless told differently by someone that knows what they are talking about.

A few links to get you started: http://3dbrew.org/wiki/3DS_Virtual_Consolehttp://3dbrew.org/wiki/FIRM#TWL_FIRM_and_AGB_FIRM
http://3dbrew.org/wiki/FIRM#TWL_FIRM_and_AGB_FIRM
http://3dbrew.org/wiki/3DS_Virtual_Console
http://3dbrew.org/wiki/ARM7_Registers
 

MRJPGames

Pretty great guy
Member
Joined
Aug 17, 2013
Messages
1,199
Trophies
1
Location
The Netherlands
Website
fizazy.com
XP
1,674
Country
Netherlands
Regular VC titles: an emulator application + VC ROM in the NCCH RomFS(among other things in the RomFS). The emulator build includes support for all supported VC platforms, not specific to just the included ROM platform.

This emulator includes GBA support, however the GBA emulation for this this is somewhat slow. This was presumably implemented before AGB_FIRM was.

Does that mean GW can run the GBA emulator included in VC titles?! And this would be great for pasta so you don't have to reboot it every time. Hopefully it will run near full speed in some games that are less hardware intensive!
 
Last edited by MRJPGames,

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,256
Trophies
4
Location
Space
XP
13,811
Country
Norway
Modding TWL_FIRM and AGB_FIRM to add support for that and things like AR codes should be theoretically possible.
After all, it's not a pure DS/GBA mode, the home button still responds and you can cancel out of that menu without disrupting the game, so there's still something running in the background.
 

metroid maniac

An idiot with an opinion
OP
Member
Joined
May 16, 2009
Messages
2,081
Trophies
2
XP
2,619
Country
Modding TWL_FIRM and AGB_FIRM to add support for that and things like AR codes should be theoretically possible.
After all, it's not a pure DS/GBA mode, the home button still responds and you can cancel out of that menu without disrupting the game, so there's still something running in the background.

But then it depends on the amount of control the background process has on the state of the game running.
If we look at AGB_FIRM and the fact that game execution can't even be paused for sleep mode, then it seems this background process has extremely little control over how the game process can work.
Forgive me if I'm getting this wrong or are speaking stupidly.
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,256
Trophies
4
Location
Space
XP
13,811
Country
Norway
But then it depends on the amount of control the background process has on the state of the game running.
If we look at AGB_FIRM and the fact that game execution can't even be paused for sleep mode, then it seems this background process has extremely little control over how the game process can work.
Forgive me if I'm getting this wrong or are speaking stupidly.
We can mod AGB_FIRM and TWL_FIRM to give the background process full access, or even spawn a new process just for the purpose of adding more features, so that's not really an issue, it's just a matter of figuring things out. It's all theoretical and I certainly won't be the one to do it, but it is possible.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: Hello @realtimesave.