#15010 - dist0rted - Fri Jan 16, 2004 2:25 am
I've done a lot of programming for the GBA with Visual HAM, but now I'm trying out DevKitAdvance and I'm always getting a "parse error before ; token" message and it won't compile.
Here's my code:
What am I doing wrong?
_________________
All knowledge is good; only the way it is put to use is good or evil.
Here's my code:
Code: |
#include "gba.h" #include "screenmodes.h" #include "keys.h" #define RGB(r, g, b) (r + (g << 5) + (b << 10)) u16* thePrimaryBuffer = (u16*)VideoBuffer; int main(void) { SetMode(MODE_3 | BG2_ENABLE); int x = 10; int y = 10; thePrimaryBuffer[x + y * 240] = RGB(31, 0, 0); // This is the line with the error message } |
What am I doing wrong?
_________________
All knowledge is good; only the way it is put to use is good or evil.