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

Submitted by:  None
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.5