Irrespective of in-line assembly syntaxes used by the compilers, I don't think 
that you can do what you're trying to do in such a straightforward way.

The original, if it is assembly language for PalmOS (I haven't checked) is 
assembly language for the Motorola 68K CPUs. AFAIK, the Pocket PCs uses 
different CPUs (and different enough among the different kinds of Pocket PC 
models, too), so the same CPU instructions simply won't work there. Similarly, 
the ARM CPU uses a completely different set of instructions - that's why you 
can't compile your function for it.

What you have to do is disassemble the code and understand what it *does*. Then 
you have to rewrite the function that does it either in some portable language 
like C, or in the assembler of the target CPU. You simply cannot continue to 
use the same machine language bytes on a different CPU.

Regards,
Vesselin
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to