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.

ASM > Ds camera - face training.asm code request

#164064 - cualquiercosa327 - Sun Oct 19, 2008 10:49 pm

Hello.I have received today the dscamera which cames with face training.
I was searching info but it seems nobody has used it on a homebrew proyect.

I would like propouse some ideas for trying learning how it works.
One would be tried discover how camera works on some emu,the emu would said :no camera insert,but it could be a begining for discovering what address it tried to use,Look for load/store instructions to the GBA cart space,...

The other options,and it is why i post here,is make an asm code which could be executed with action replay codes.(kenobi's program)
maybe scan the ram and save it to cart.And after post here

Other option i was said is Set up a protection region on the GBA cart space to cause an exception and have the exception handler inspect the code and register values around where it was executing.


more ideas??

i would test all codes people write and will put the result here.

thanks

Dani

#164090 - cualquiercosa327 - Mon Oct 20, 2008 4:42 pm

Hello,i would add some info i found today while i was making some test.
One is how the nds rom is structured.

NDS:

-data
-overlay
the common arm9 and arm7 binary.y7 and y9.bin

the curious is the data directory
DATA/

------------scripts for any "level"/"training"??
/common

/face/F0
F1


/training

-------------

/Game ..> here is interesting because are 4 files ,and according its same it is when camera not detected
(CG_error.nccarc_c ; CGErrorCamera ;CGErrorDelete ; CGErrorPowerOff
/contest
/menu :same kind of data as game but for menus


/JP the voices on mp3 also




/useredit



/data/ only font.data


/dsface.dat it is 6,32 Mg.
/dummy

/*.mp3 ,the sounds
(the music and sound are mp3 )


The files seems a kind of scripts where defined the patters (maybe similar to other programs as worms3d,..)

And dsface.dat seem also very interesting,it is too big ,maybe it is the script program.


I also have some test with the game in no$gba and hasteds.( i have saved the ram when game is init and before it give error for not insert camera.
I think it would be interesting make the same on real ds with the camera inserted and saved into the dscard.But i am not know many asm and i am unable to do it.

Other interesting thing would be a program for discover when "cg_ErrorCamera.nccarc_c " is showed (the msg showed when camera is unavailable)

Also i have the save data of my ttds,where it saved the photo and info of user.I will try search if it they are a common graphics file format on it.(maybe some info what kind of formats dscamera works.