Page 1 of 1

basic ASM question

Posted: Mon Mar 17, 2003 5:20 pm
by stonedzealot
when you have a label, how many bytes does this take?

e.g.

Code: Select all

mylabel:
      dw 0
to access that word later, I'd have to say [mylabel + x]
where x is the length of mylabel.

Re:basic ASM question

Posted: Mon Mar 17, 2003 5:22 pm
by Tim
Labels don't occupy any space.

Re:basic ASM question

Posted: Mon Mar 17, 2003 5:33 pm
by stonedzealot
ah, so they're like pronouns, the linker just replaces them....anyway so [mylabel] would automatically refer to that word then?

Re:basic ASM question

Posted: Tue Mar 18, 2003 3:08 am
by Tim
Yes.