Page 1 of 1

Workaround for missing __asm keyword...

PostPosted: May 12, 2007 @ 12:07am
by ynezz

PostPosted: May 14, 2007 @ 8:38am
by refractor

PostPosted: May 14, 2007 @ 11:44am
by ynezz

PostPosted: May 14, 2007 @ 4:01pm
by refractor
Yes, arguments are passed in r0-r3, and then on the stack if there are more. That's normal. How long they're there for, and the registers assigned for variabled is another matter. Imagine that, as in your case, the arguments are not actually used: the compiler may well just decide to use the register for something totally different.

The other way to do it would be to avoid emit and just write functions in assembler to do what you want instead. It should be less "voodoo" than "emit", if less optimal. I just think that you're going to end up having pain sooner or later with emit....

PostPosted: May 14, 2007 @ 4:28pm
by ynezz

PostPosted: May 15, 2007 @ 7:38am
by refractor