basic ASM question

Programming, for all ages and all languages.
Post Reply
stonedzealot

basic ASM question

Post 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.
Tim

Re:basic ASM question

Post by Tim »

Labels don't occupy any space.
stonedzealot

Re:basic ASM question

Post by stonedzealot »

ah, so they're like pronouns, the linker just replaces them....anyway so [mylabel] would automatically refer to that word then?
Tim

Re:basic ASM question

Post by Tim »

Yes.
Post Reply