#11502 - jimmy-bucket - Wed Oct 08, 2003 10:01 pm
Hi all,
I'm currently playing around with some basics, and i have a routine that checks for keypresses and flips a sprite if one is pressed. It all works fine, but there are large chunks of irrelevant code repeated.
Eg:
The HORIZONTAL_FLIP (or lack of) is the only part i want, but the code doesnt work without the rest.
Ie:
Any pointers?
Thanks in advance, Kieren
I'm currently playing around with some basics, and i have a routine that checks for keypresses and flips a sprite if one is pressed. It all works fine, but there are large chunks of irrelevant code repeated.
Eg:
Code: |
ldr r1,=(SQUARE|COLOR_256|10)|((SIZE_32|10|HORIZONTAL_FLIP)<<16)
ldrne r1,=(SQUARE|COLOR_256|10)|((SIZE_32|10)<<16) |
The HORIZONTAL_FLIP (or lack of) is the only part i want, but the code doesnt work without the rest.
Ie:
Code: |
ldr r1,=HORIZONTAL_FLIP
ldrne r1,=**Remove flip** |
Any pointers?
Thanks in advance, Kieren