NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: dalfonso01 on July 24, 2014, 06:43:54 AM
-
???????????????????
mov eax,[HexStr]
What is placed in EAX here is the address given to the variable HexStr when
the program is loaded into memory
Hi,
after trying to give a sense to this statement, I realized that this is wrong.
What is moved in eax are the first 4 letters of HexStr .
mov ebx,HexStr gives in ebx the address of HexStr , where the value now in eax is located.
There are many of this errors in Duntemann book, and it is the 3rd edition. This is a major problem when one is starting on a subject of this kind and has to confront with doubts created by such kind of misspelling.
Thanks
Fabio D'Alfonso
-
We all make mistakes. Jeff's just proving that he's human. I agree that beginners trying to learn don't need the added confusion that mistakes like that cause!
How'd you like that CRC book you mentioned?
Best,
Frank
-
Hi,
from Sivarama book:
lea EBX, [array+ESI]
to load EBX with the address of an element of array whose index is in the ESI register. However,
we cannot write
mov EBX, [array+ESI] ; illegal ILLEGAL???
as the contents of ESI are known at assembly time.
Please call 911, I see this things here an there.
-
Dr. Dandamudi is apparently deceased and won't be correcting the errors in his book, if any. I have not read his book(s). I do not have source code for his library. I have disassembled the Linux version of his library. I put it on the roses to make 'em bloom.
Best,
Frank