gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Supercard CF Question [Solved]

#152433 - Lazy1 - Sat Mar 15, 2008 9:21 pm

If you were to copy a gba binary to slot-2 ram and switch to gba mode, would it boot into the supercard menu or to the gba binary?
I just had this crazy idea to send small gba programs to the DS using wmb while I learn gba development.

I have tried to get this working but all it does is boot into the sc menu.

EDIT:
Got it working, needed sysSetBusOwners( true, true ); to work.
Luminesweeper booted just fine through wmb :D


Last edited by Lazy1 on Sat Mar 15, 2008 11:04 pm; edited 1 time in total

#152434 - Dwedit - Sat Mar 15, 2008 10:04 pm

I think it would boot the GBA binary, as long as the supercard is still in RAM mode, and the GBA binary has a valid Nintendo logo.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#152439 - Lazy1 - Sun Mar 16, 2008 1:56 am

Would anyone be interested if I put this together properly?

Currently the process is as follows:
1) Build GBA binary
2) Inject GBA binary into wmb2gba DS binary
3) Send DS binary using wmbhost

This is good for me since I can do tests faster on hardware without the need to swap carts.
I'm not sure how many DS developers there are who want to step back and learn the GBA though.

#152445 - tepples - Sun Mar 16, 2008 4:10 am

Part of me thinks it would be nicer if the loader used dswifi to pull the binary from the PC.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#152469 - Lazy1 - Sun Mar 16, 2008 2:21 pm

That might be faster and would allow larger binaries to be sent, unfortunately I have no way of connecting my DS to the internet atm so I cannot do it.
Maybe when the dswifi library gets updated...