Loading SNES games off a Gameboy cartridge?

Ami_

Member
OP
Newcomer
Joined
Mar 22, 2022
Messages
16
Trophies
0
Age
24
Location
Birmingham
XP
78
Country
United Kingdom
Gameboy cartridges can be played on a SNES using the Super Gameboy, and sometimes include additional features when doing so. There has been a GB cartridge which contains an entire SNES game (Space Invaders).

My question is: could it be possible to take an existing SNES rom hack, wrap it in GB code, and load it off a GB cartridge through a Super Gameboy?

dyOgg8V.png
 

Kwyjor

Well-Known Member
Member
Joined
May 23, 2018
Messages
4,323
Trophies
1
XP
4,454
Country
Canada
  • Like
Reactions: KleinesSinchen

Deleted member 194275

Edson Arantes do Nascimento
Member
Joined
Aug 19, 2009
Messages
2,685
Trophies
2
XP
4,351
The game in SNES mode uses a resolution and transparencies that the Game Boy is fundamentally incapable of. It's hardly a matter of "red arrows and clicks".
https://blog.loveconquersallgames.com/post/2424872085/fuck-the-super-game-boy-now-youre-playing-with
That's 100% true. What is also true, and that's my whole point, is that every single Super Game Boy enhanced game do the same, witch it using some capabilities of SNES to enhance gameboy games, like some that use controller port 2 to play 2 player games, or the colorization of many games, those are all modes that Super Game Boy deliveries.

What is 100% false, is that there is a tiny snes game hidden in a game boy cartridge. That's the click bait on youtube that made people magically forget that running Space Invaders with background and colors is not the same as run a SNES rom.

Come on, you can't even bypass the super gameboy sound chip for fuck sake. Everything that the Super Gameboy runs, is running on the super game boy, why it is so hard to understand?

Some dudes are talking like the SGB is magically bypassing itself and becoming a SNES Flashcard. I wonder is those people ever touched on a SGB or on a SNES before.
 

SylverReZ

Dat one with the Rez
Member
GBAtemp Patron
Joined
Sep 13, 2022
Messages
7,169
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
22,006
Country
United Kingdom
Try disassembling the Game Boy ROM in an emulator to find the routines on how the SGB process the SNES code into memory. Then you'll get an idea on how it could be possible to inject your own SNES code.
 
  • Like
Reactions: Ami_

KleinesSinchen

GBAtemp's Backup Reminder + Fearless Testing Sina
Member
GBAtemp Patron
Joined
Mar 28, 2018
Messages
4,433
Trophies
2
XP
14,884
Country
Germany
That's 100% true. What is also true, and that's my whole point, is that every single Super Game Boy enhanced game do the same, witch it using some capabilities of SNES to enhance gameboy games, like some that use controller port 2 to play 2 player games, or the colorization of many games, those are all modes that Super Game Boy deliveries.

What is 100% false, is that there is a tiny snes game hidden in a game boy cartridge. That's the click bait on youtube that made people magically forget that running Space Invaders with background and colors is not the same as run a SNES rom.

Come on, you can't even bypass the super gameboy sound chip for fuck sake. Everything that the Super Gameboy runs, is running on the super game boy, why it is so hard to understand?

Some dudes are talking like the SGB is magically bypassing itself and becoming a SNES Flashcard. I wonder is those people ever touched on a SGB or on a SNES before.
I really don't know why you seem to be so aggressive about this.
The screenshot alone doesn't look like a Super Game Boy enhanced game running at 160*144 pixels.

Finally, I'll quote/link nocash here:
http://problemkaputt.de/pandocs.htm#sgbfunctions

problemkaputt.de/pandocs.htm#sgbfunctions said:
Taking Control of the SNES CPU
Finally, it is possible to write program code or data into SNES memory, and to execute such program code by using the SNES CPU.
 

SylverReZ

Dat one with the Rez
Member
GBAtemp Patron
Joined
Sep 13, 2022
Messages
7,169
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
22,006
Country
United Kingdom
"Finally, it is possible to write program code or data into SNES memory, and to execute such program code by using the SNES CPU." - there's no screenshots or any other proof from what I could tell to show this claim.
 

KleinesSinchen

GBAtemp's Backup Reminder + Fearless Testing Sina
Member
GBAtemp Patron
Joined
Mar 28, 2018
Messages
4,433
Trophies
2
XP
14,884
Country
Germany
"Finally, it is possible to write program code or data into SNES memory, and to execute such program code by using the SNES CPU." - there's no screenshots or any other proof from what I could tell to show this claim.
Let's say it that way: I know it is a possible logical fallacy "argumentum ab auctoritate" and not a proof.

I trust nocash's documentation. I believe he knows what he does and writes in his documentation.
=======

Lacking all abilities in this regard, I can't do reverse engineering myself. Maybe somebody with such abilities could confirm machine code for two different CPUs to end this discussion.
 
  • Like
Reactions: SylverReZ

SylverReZ

Dat one with the Rez
Member
GBAtemp Patron
Joined
Sep 13, 2022
Messages
7,169
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
22,006
Country
United Kingdom
Let's say it that way: I know it is a possible logical fallacy "argumentum ab auctoritate" and not a proof.

I trust nocash's documentation. I believe he knows what he does and writes in his documentation.
=======

Lacking all abilities in this regard, I can't do reverse engineering myself. Maybe somebody with such abilities could confirm machine code for two different CPUs to end this discussion.
Yes, he has done many many amazing things - such as the NO$ series of emulators that I have used for years.
 

Ami_

Member
OP
Newcomer
Joined
Mar 22, 2022
Messages
16
Trophies
0
Age
24
Location
Birmingham
XP
78
Country
United Kingdom
Try disassembling the Game Boy ROM in an emulator to find the routines on how the SGB process the SNES code into memory. Then you'll get an idea on how it could be possible to inject your own SNES code.
I tried to do that, but I don't personally have a good enough understanding to reverse engineer this.
 
  • Like
Reactions: SylverReZ

SylverReZ

Dat one with the Rez
Member
GBAtemp Patron
Joined
Sep 13, 2022
Messages
7,169
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
22,006
Country
United Kingdom
  • Like
Reactions: PhyChris

Kwyjor

Well-Known Member
Member
Joined
May 23, 2018
Messages
4,323
Trophies
1
XP
4,454
Country
Canada

PhyChris

Well-Known Member
Member
Joined
May 6, 2009
Messages
368
Trophies
1
XP
2,089
Country
Canada
That's rather ambiguous. Isn't everything "custom code"?

What exactly would be the obstacle in overwriting the SNES code in the Space Invaders ROM with some arbitrary homebrew? Presumably there's some checksum somewhere, but aside from that?
?? I meant homebrew.

Edit: You could do some cool stuff that used both CPUs and the SNES PPUs
 
Last edited by PhyChris,

SylverReZ

Dat one with the Rez
Member
GBAtemp Patron
Joined
Sep 13, 2022
Messages
7,169
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
22,006
Country
United Kingdom

SylverReZ

Dat one with the Rez
Member
GBAtemp Patron
Joined
Sep 13, 2022
Messages
7,169
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
22,006
Country
United Kingdom
Last edited by SylverReZ,

skawo

Well-Known Member
Member
Joined
Aug 18, 2015
Messages
538
Trophies
0
Age
34
XP
2,704
Country
If you hex edit the GB rom and compare it to the SI: TOG rom, you can find parts that very clearly match each other.

It does look like the GB rom lacks some things, like the header, and may be split into chunks, so replacing it isn't trivial, but should theoretically be doable.
 
  • Like
Reactions: SylverReZ

SylverReZ

Dat one with the Rez
Member
GBAtemp Patron
Joined
Sep 13, 2022
Messages
7,169
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
22,006
Country
United Kingdom
If you hex edit the GB rom and compare it to the SI: TOG rom, you can find parts that very clearly match each other.

It does look like the GB rom lacks some things, like the header, and may be split into chunks, so replacing it isn't trivial, but should theoretically be doable.
It would be best though to see how the ROM is loaded into memory, just to get an idea on how you can replicate the same thing as what the Space Invaders ROM does.
 

Ami_

Member
OP
Newcomer
Joined
Mar 22, 2022
Messages
16
Trophies
0
Age
24
Location
Birmingham
XP
78
Country
United Kingdom
If you hex edit the GB rom and compare it to the SI: TOG rom, you can find parts that very clearly match each other.

It does look like the GB rom lacks some things, like the header, and may be split into chunks, so replacing it isn't trivial, but should theoretically be doable.

I found 137396 bytes of identical data at these addresses
startend
GB0004C51C0004F9BB
SNES0002AC680002E107


Curiously 137kb is too big to fit in RAM.
 
  • Like
Reactions: SylverReZ

SylverReZ

Dat one with the Rez
Member
GBAtemp Patron
Joined
Sep 13, 2022
Messages
7,169
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
22,006
Country
United Kingdom
I found 137396 bytes of identical data at these addresses
startend
GB0004C51C0004F9BB
SNES0002AC680002E107


Curiously 137kb is too big to fit in RAM.
It might perhaps be compressed or uncompressed data, have you checked?
 
Last edited by SylverReZ,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @Mondooooo, sadly I dont have any tips