• Welcome to SCdev.org. Please log in.

Welcome to the new SCdev forums!

Download SuperCard source code

Started by mysql, October 20, 2005, 03:51:33 AM

Previous topic - Next topic

memyselfandi

I have an idea :idea:
this is probably can not be done but w/e
Can somebody make a program that makes gba games load like ds games of the cf card so that the file could be bigger and we could still have the patches with no slowdown or make  a gba rom into a nds rom by adding like a picture to the seconds screen and it would run without slowdowns.
I don't know ANYTHING about games and programing so if this is tottaly not possible then don't get mad at me for suggesting it ok.
 am The Best and you Know it!!!

Slippy

That's not the problem... DS games are made differently where they load onto the DS's memory, GBA games run straight from the SDRAM on the flash cart.  The slowdown is caused by (slightly) too slow SDRAM, not by the fact that it doesn't load straight from CF or SD.
S Setup:
1st Gen DS
Flashme 5 w/ Superpass and Supercard SD
Limited edition Miyamoto signed orange DS Skin
Limited edition Kirby! pink stylus
Now Playing: Nintendogs w/ Jack Russel Terrier

memyselfandi

 am The Best and you Know it!!!

MisterJP

lycos89,

You should try
extern "C" void InitSCMode(void);
extern "C" bool MemoryCard_IsInserted(void);

for the supercard functions declarations as it seems you are building from c++ files.

One thing to note, the MemoryCard_IsInserted is not well declared in "sd.s"  but i did not check for the cf version.

regards,
JP.

lycos89

MemoryCard_IsInserted "declaration" is wrong, here is the corretc version

cf.s

@---bool MemoryCard_IsInserted(void)---

.ALIGN

.GLOBAL  MemoryCard_IsInserted

.CODE 32

MemoryCard_IsInserted:

ldr r0,=cfstatns

mov r1,#0x50

strh r1,[r0]

nop

ldrh r2,[r0]

cmp r2,r1

moveq r0,#1

movne r0,#0

bx r14



@---end MemoryCard_IsInserted---


and

extern "C" void InitSCMode(void);

extern "C" bool MemoryCard_IsInserted(void);

works

Thanks

MisterJP

Keep me informed if you can read from the cf card, as i did not succeed to do the same with the sd version...

The code from mysql seems to loop forever waiting for a ready condition (at least for the sd version).
I posted the question on the official supercard forum, but i got no answer at the moment and since my question has been moved off-topic, i do not expect one :?

JP.

cory1492

From the looks of it your question has actually been deleted entirely from there...

larryli

i dump the rom that translated by new SC software 2.42(SD), and compare the code with sd.s. i thought that the code publiced by mysql is used on old kernel, not run well in new firmware.

MisterJP

larryli,

I had a similar idea and looked at Moonshell : the InitSCMode is definitely in it and is the same as the one in sd.s. I'm not good in asm so i guess i'm missing something in Moonshell code.

cory1492,

I had a last look yesterday evening and my question was back to the supercard forum :), but this morning the forum seems to be down...

JP.

lycos89

I make dsText from http://www.youngmx.com/ndsdev/
it works
you can edit the file that i specified into the sourcecode (test.txt)
http://ufrsciencestech.u-bourgogne.fr/~ma746448/homebrews/dsText.zip

I'm working on Moonshell05