by kornalius » Jan 24, 2004 @ 3:49am
Thanx a lot. I will be doing some more testing tomorrow.
Btw, how would you convert this into assembly opcodes:
mov r0, #0xFA, 26
I know it's e3a0dfa but I need to be able to add my dfa to e3a0. Could I do it with a string and then convert it back into int? If so how to do this in C?
Another one: Let's say I have an array of *char that I need to use inside my new assembly code, can I directly access an array item with it's address or does it have to be relative to the pc (r15 i think)?
You see I want to do something like this: (Move the address of array[10] variable into r0 and then call a regular C void called _push).
C code
=====
void _push(char *s)
{
PushOnInternalStack(s);
}
Assembly code to generate
==================
ldr r0, array[10]
bl _push
How would this translate into ARM opcodes?
Regards,
Alain Deschenes