#11181 - Twentyfourracing - Sun Sep 28, 2003 2:53 pm
Hello,
I seem to be having a small problem getting this to compile.
I am very new to GBA and GCC. I am trying to us an asm function, 1. for small code space, 2. it's just faster(over all)......?
I know you can just use a C type function, but it compiles a little bigger then the asm version.....
Here is what I am trying to inline.....
Thank you.....
Steve
I seem to be having a small problem getting this to compile.
I am very new to GBA and GCC. I am trying to us an asm function, 1. for small code space, 2. it's just faster(over all)......?
I know you can just use a C type function, but it compiles a little bigger then the asm version.....
Here is what I am trying to inline.....
Code: |
void vblk()
{ __asm volatile( " mov r0, #0x4000006 wait: ldrh r1,[r0] cmp r1, #160 bne wait"); } |
Thank you.....
Steve