Theres an ambiguous part in a book I'm reading about MASM, I won't quote it here but tell me how the following code behaves...
I inferred from the book that the very last instance of ...Code:NUMBER = 20 ;does this really mean 5? mov eax, NUMBER NUMBER = 5 mov ebx, NUMBER add eax, ebx
... propagates through the whole file rendering all of the other instances useless. Is this right?Code:NUMBER = ??
If this is the case then eax now contains 10 (5+5). But my own mind makes me think that it would actually contain 25.
I know how things like this behave in other languages and they way the book says it sounds weird.
Can anyone shed any light?
(I would try it but I haven't got MASM on this machine)




Reply With Quote