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 > argv at 0x2FFFE70? or at 0x27FFF70?

#172822 - the kid in the clock - Fri Mar 05, 2010 8:17 pm

devkitpro has argv at 0x2FFFE70.
http://devkitpro.svn.sourceforge.net/viewvc/devkitpro/trunk/libnds/include/nds/system.h?revision=3910&view=markup#l_308

desmume - and my cyclods - seem to have it at 0x27FFF70.
http://desmume.svn.sourceforge.net/viewvc/desmume/trunk/desmume/src/NDSSystem.cpp?view=markup#l_2204

anyone know who is right?

#172824 - wintermute - Fri Mar 05, 2010 9:31 pm

devkitPro ...

we had to move things around for DSi support.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#172826 - the kid in the clock - Fri Mar 05, 2010 10:57 pm

so it sounds like there's a newer and an older argv style. do any cards support the newer style?

i appreciate your answers. you probably feel like this stuff is written a thousand times everywhere - somehow i can't seem to find anything current.

#172827 - wintermute - Fri Mar 05, 2010 11:06 pm

It's not a newer & older style it's an "oops I messed that up" and a "there I fixed it now" style. devkitARM r26 has the broken implementation, r27+ has the corrected version, this won't change again.

I think the latest akaio provides the correct implementation, not sure offhand.

As I've said elsewhere, given sufficient pressure and information, all card manufacturers who actually support homebrew *will* use the correct implementation provided that homebrew devs stop trying to be all things to all people and attempting to make things work on all cards.

argv and exit to menu functionality are relatively recent additions to devkitARM/libnds so you probably won't find much by searching. It's been on the TODO list for a while but I only recently had reason to make it work and sufficient time to actually do it.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#172828 - coreyh2 - Fri Mar 05, 2010 11:13 pm

I was curious about this too when the nitrodir example failed even though the cycloDS firmware had argv support talked about in the feature list. Is argv documented somewhere thats easy for card makers to find? Was this change reported somewhere they would see?

Its hard for me to even try to use nitrofs if it doesn't even run on my card.

#172830 - the kid in the clock - Fri Mar 05, 2010 11:49 pm

wintermute - good ok i see - it was a mistake. part of the problem is that some cards use that old/wrong/whatever memory address. cyclods lists this support for 'argv' loading - and it uses that address. i posted a bug report on their forum - but its hard to tell them what to support unless it's clear. i'm not trying to create work for you - i'm just checking this stuff so i can tell them what's right.

coreyh2 - here's a sample you can try to see if your cyclods has any 'argv' support. if you have a newer firmware, you should see a message about finding 'desmume' style argv.
http://dl.thekidintheclock.com/u/5148711/nds/efs-test_mar2010.nds

and here's the source for it.
http://dl.thekidintheclock.com/u/5148711/nds/efs-nice_mar2010.zip


Last edited by the kid in the clock on Sat Mar 06, 2010 12:03 am; edited 1 time in total

#172831 - wintermute - Fri Mar 05, 2010 11:53 pm

hbmenu has existed in the devkitPro SVN repository as a launcher reference design for over a year now. Various card manufacturers were pointed to that but obviously we can't spare the time to find contact details for what now seems like close to a hundred varieties of DS flashcard.

If argv & libfilesystem doesn't work on your card report it as an issue and request that they look at how hbmenu works. Currently the file browser is fairly basic but it can be replaced, really all they have to do is add their own UI and use the launcher code.

It's starting to get to the point where I really think the effort of building a DS SD adapter specifically for homebrew might be warranted. The main issue with that is Nintendo's current aggression towards "game copying" devices - several people in the UK have received custodial sentences for selling DS flashcards in recent months. If we do create a homebrew card it's going to have to not run "backups" out of the box.

edit: holy crap the cycloDS is expensive
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#172833 - elwing - Sat Mar 06, 2010 10:04 am

wintermute wrote:
edit: holy crap the cycloDS is expensive


pretty expensive, but pretty good also... that said, it was good when you only had some random R4 or DSTT card, with acekard + akaio I don't see the point in cycloDS when it's over 4time the price and offer almost nil over...

#172847 - wintermute - Mon Mar 08, 2010 1:26 pm

Some info on hbmenu & how the argv and reset code work

http://wiki.devkitpro.org/index.php/Homebrew_Menu
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#172858 - the kid in the clock - Mon Mar 08, 2010 5:41 pm

this looks brilliant - it's written very clearly. can't thank you enough. going to relay this on to the cyclods guys and refer to this in my game's instructions.

#172861 - the kid in the clock - Mon Mar 08, 2010 6:04 pm

also, looks like desmume has updated their code! on friday.
http://desmume.svn.sourceforge.net/viewvc/desmume?view=rev&revision=3394

people appear to be... cooperating?

#172875 - vuurrobin - Tue Mar 09, 2010 9:21 am

the kid in the clock wrote:
also, looks like desmume has updated their code! on friday.
http://desmume.svn.sourceforge.net/viewvc/desmume?view=rev&revision=3394

people appear to be... cooperating?


Quote:
Author: wntrmute
Date: Fri Mar 5 20:42:35 2010 UTC (3 days, 11 hours ago)
Log Message:
use correct address for argv


only if wintermute is cooperating with himself :P

still, nice to see desmume use the correct adress.
_________________
my blog:
http://vuurrobin.100webcustomers.com/