hi,
there is something i can't digest. I'm learning some assembler and right now i'm at chapter with addressing. I understand the concept of brackets for dereferencing, but somehow when I see the usage of it I just can't soak up the point of it. To be a little bit more exact here is where my confusion started:
mov al, [L1]
ok here I suppose L1 as an example case is some kind of macro which is later substituted for a real address in the machine code..right?
so what this instruction does is: dereferencing al register (because you could hardly change physical address) and changing the value to the one stored at L1.
if till now everything is ok:
mov [L1], al
that would analogicaly mean... there must have been an address stored (so there was some point in doing this) and you change it to some other place in memory.. right?
if you could just tell me it's ok in case you don't see any mistakes please do it, that would make it possible for me to continue learning.
oh and one last thing, NASM adds a bunch of 0xAA55 under my code (this sequence is supposed to end the program right?), why is it there so many times? thank you very much for reading it to here..