GP32 Swi #5/gpappexecute


Joined
Jan 16, 2004
Messages
297
Location
hell
Website
diab0l.pdroms.de
according to mr.spiv's fw-disassembly, swi #5 takes two "arguments"
r0 (code or so) and r1 (path)
so,
if i want to start a gxb i previosuly loaded into memory in some way, i just put the address of the first byte of the actual code into r0 and the address of the first byte of the string containing the path to the gxb into r1?
tho, how do i call the mov-thingy right?
i mean, i need to mov the C-ptrs into r0/r1 :eek:

Edit: darn emoticons
 
asm volatile(" mov r0, %0 \n"
" mov r1, %1 \n"
" swi #0x05 \n"::"r"(pPtr1), "r" (pPtr2): "r0", "r1");
 
Back
Top