Author Topic: Round Errors in Bibliography?  (Read 2001 times)

Offline dalfonso01

  • Jr. Member
  • *
  • Posts: 44
Round Errors in Bibliography?
« 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
« Last Edit: July 24, 2014, 06:53:47 AM by dalfonso01 »

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2379
  • Country: us
Re: Round Errors in Bibliography?
« Reply #1 on: July 24, 2014, 09:16:06 AM »
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


Offline dalfonso01

  • Jr. Member
  • *
  • Posts: 44
Re: Round Errors in Bibliography?
« Reply #2 on: July 30, 2014, 05:57:56 AM »
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.
« Last Edit: July 30, 2014, 06:02:30 AM by dalfonso01 »

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2379
  • Country: us
Re: Round Errors in Bibliography?
« Reply #3 on: July 30, 2014, 06:25:50 AM »
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