#90154 - bjoerngiesler - Wed Jun 28, 2006 5:42 pm
Hi,
I'm trying to pinch a bit of code from the MoonShell sources to build an exec()/system() function, i.e. to run a NDS file from SuperCard (and later others). Long story short, it doesn't work, and I don't know exactly why. Can anyone help out?
First problem is that the routine resetMemory1_ARM9() doesn't compile. It gives errors such as the following:
Error: dest and source1 must be the same register -- `orr r2,r1,r0'
Error: bad instruction `mcr p15,0,r2,c7,c14,2'
... and more. I know next to nothing about ARM9 assembler (will have to learn it, obviously); but how can this compile for MoonShell?
Without the resetMemory1_ARM9 routine (but keeping all other code intact), the launching process just hangs, so I suppose the memory reset is absolutely needed.
Has anyone done something like this before and can give me some pointers?
Thanks a lot in advance,
Bj?rn
I'm trying to pinch a bit of code from the MoonShell sources to build an exec()/system() function, i.e. to run a NDS file from SuperCard (and later others). Long story short, it doesn't work, and I don't know exactly why. Can anyone help out?
First problem is that the routine resetMemory1_ARM9() doesn't compile. It gives errors such as the following:
Error: dest and source1 must be the same register -- `orr r2,r1,r0'
Error: bad instruction `mcr p15,0,r2,c7,c14,2'
... and more. I know next to nothing about ARM9 assembler (will have to learn it, obviously); but how can this compile for MoonShell?
Without the resetMemory1_ARM9 routine (but keeping all other code intact), the launching process just hangs, so I suppose the memory reset is absolutely needed.
Has anyone done something like this before and can give me some pointers?
Thanks a lot in advance,
Bj?rn