Digging some old sources...
getID:
stmdb sp!, {r1, r2, r3, lr}
mov r3, #0 @ 0x0
swi 0x00000105
ldmia sp!, {r1, r2, r3, pc}
....
char bufid[4096;]
char buf[33];
if (getID(16,16,bufid) != 0) {
GpTextOut(NULL,&gpDraw,0,20,"Error! Failed to read DEV ID",0x00);
} else {
char key[8] = {"SANGHYUK"};
buf[32] = '\0';
for (n = 0; n < 16; n++) {
gm_sprintf(buf+2*n,"%02X",bufid[n] ^ key[n % 8]);
}
GpTextOut(NULL,&gpDraw,0,30,buf,0x00);
}
...should do the trick.. :blink: