gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

ASM > Changing dynamically the adress of a label

#10512 - funkeejeffou - Sat Sep 06, 2003 8:47 pm

Can I change the location in memory of a label in my code.
Let's say "array" is a label pointing at the beginning of my array, if I wanna make it point it to the 2nd line, can I do it without using another label?

#10513 - tepples - Sat Sep 06, 2003 9:47 pm

The label created when you create an array of data is a constant label and cannot be assigned to. For what you want to do, you want a pointer variable.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#10521 - funkeejeffou - Sun Sep 07, 2003 1:07 am

Thanks Tepples, that's what I wanted to know.