bugProgramming from the Ground Up Book - Bugs: bug #11930, i think it is not understandable,...

 
 

bug #11930: i think it is not understandable, what will be the MULIPLIER default value 0 or 1

Submitter:  None
Submitted:  Thu 10 Feb 2005 11:15:53 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 06 Apr 2006 12:37:41 PM UTC, comment #2: 

Another bug!!

pushl %eax
is equivalent to
movl %eax, (%esp)
subl $4, %esp

subl does subtraction. Since %eax is four bytes big, we have to subtract 4 from %esp. In the same way
popl %eax
is the same as
movl (%esp), %eax
addl $4, %esp

Push should happen at -4 otherwise you will be getting wrong data while popping up !!

-email is unavailable-

Anonymous
Thu 06 Apr 2006 09:04:01 AM UTC, comment #1: 

It has to be 1 : hari kishore vyas

Anonymous
Thu 10 Feb 2005 11:15:53 PM UTC, original submission:  

Page 28
"ADDRESS_OR_OFFSET and MULTIPLIER must both be constants, while the other two must be
registers. If one of the pieces is left out, it is just substituted with zero in the equation."

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code