#8107 - regularkid - Wed Jul 02, 2003 6:37 am
I'm trying to write an assembly function to wait for the vertical retrace period. Here's what I have so far:
However, when I compile with gcc I get this error:
referring to this: #0x04000006. Since I am using ARM mode rather than THUMB, there should be no reason why this constant is too big for the register. Am I wrong? Any ideas to fix this? Thanks!
_________________
- RegularKid
Code: |
.ARM .ALIGN .GLOBAL WaitVSync WaitVSync: wait: mov r0, #0x04000006 ldrh r0, [r0] cmp r0, #160 bne wait bx lr |
However, when I compile with gcc I get this error:
Code: |
Video.s: Assembler messages: Video.s:43: Error: Invalid constant MAKE: *** [RK_Video_ASM.o] Error 1 |
referring to this: #0x04000006. Since I am using ARM mode rather than THUMB, there should be no reason why this constant is too big for the register. Am I wrong? Any ideas to fix this? Thanks!
_________________
- RegularKid