#8828 - jhorvath - Mon Jul 21, 2003 4:17 am
hello,
i'm having a bit of trouble ..(on account of my ignorance , nothing real technical), with gas.
all i'm trying to do (don't laugh...) is set the video mode and put a little red pixel on the screen (gbaguy's asm tut)
now i find that everything is well and good if i supply actual numeric values , ie:
ldr r1,=0x04000000
however if i try to use a variable, say ..
ldr r1,=REG_DISPCNT
..that would have been defined in my gba.s as
.data
REG_DISPCNT : .word 0x04000000
{..a lot more like the line above..}
.pool
.end
possibly something is wrong with the way i *define* my variables. i had them defined differently, then i read someone's post about putting variables in ram (or something) so i changed the file to this...anyway...
i guess what i'm wondering is ..does there seem anything wrong with an *.include* file with a layout as my gba.s (see above), and if so does anyone have a quick explanation , or possibly a file they could send me for reference.
thanks in advance,
_________________
/* jhorvath */
i'm having a bit of trouble ..(on account of my ignorance , nothing real technical), with gas.
all i'm trying to do (don't laugh...) is set the video mode and put a little red pixel on the screen (gbaguy's asm tut)
now i find that everything is well and good if i supply actual numeric values , ie:
ldr r1,=0x04000000
however if i try to use a variable, say ..
ldr r1,=REG_DISPCNT
..that would have been defined in my gba.s as
.data
REG_DISPCNT : .word 0x04000000
{..a lot more like the line above..}
.pool
.end
possibly something is wrong with the way i *define* my variables. i had them defined differently, then i read someone's post about putting variables in ram (or something) so i changed the file to this...anyway...
i guess what i'm wondering is ..does there seem anything wrong with an *.include* file with a layout as my gba.s (see above), and if so does anyone have a quick explanation , or possibly a file they could send me for reference.
thanks in advance,
_________________
/* jhorvath */