Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly Language > Re: begginer qu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 23 Topic 4988 of 5160
Post > Topic >>

Re: begginer question

by "Wolfgang Kern" <nowhere@[EMAIL PROTECTED] > May 4, 2008 at 11:04 AM

Robert Redelmeier wrote in part:

> The MUL and DIV instructions are wired to take only one
> variable operand, and use fixed registers for the other
> operand and destination:

> MUL [src]  does EAX*[src] and puts the results in
>      EAX:EDX  (EAX has the high 32 bits, EDX the low).

> DIV [src]   does EAX:EDX / [src] and puts the
>             result in EAX and the remainder in EDX.


Mmh.. my CPU does it the other way around  :)

MUL [src]  ;does EAX*[src] and puts the result in
           ;EDX:EAX ("EDX has the high 32 bits" ..)
DIV [src]  ;does EDX:EAX/[src] and is therefore prone
           ;to overflow if the result is >32 bit.

> All of this is nicely desribed in the Intel and AMD
> instruction-set manuals.

Yes.

__
wolfgang
 




 23 Posts in Topic:
begginer question
Prime Mover <epleite@[  2008-05-02 20:05:41 
Re: begginer question
Robert Redelmeier <red  2008-05-03 04:36:41 
Re: begginer question
Frank Kotler <fbkotler  2008-05-03 09:19:00 
Re: begginer question
Herbert Kleebauer <kle  2008-05-03 12:04:20 
Re: begginer question
Phat Sam <phatsam@[EMA  2008-05-04 09:31:14 
Re: begginer question
Prime Mover <epleite@[  2008-05-03 11:17:42 
Re: begginer question
Robert Redelmeier <red  2008-05-03 20:11:01 
Re: begginer question
"Wolfgang Kern"  2008-05-04 11:04:32 
Re: begginer question
Robert Redelmeier <red  2008-05-04 18:59:10 
Re: begginer question
Frank Kotler <fbkotler  2008-05-03 22:21:13 
Re: begginer question
Prime Mover <epleite@[  2008-05-03 11:23:26 
Re: begginer question
"Wolfgang Kern"  2008-05-04 10:51:20 
Re: begginer question
"rio" <a@[EM  2008-05-05 18:58:54 
Re: begginer question
"Rod Pemberton"  2008-05-06 05:40:32 
Re: begginer question
Evenbit <nbaker2328@[E  2008-05-03 11:50:54 
Re: begginer question
kteixeira85@[EMAIL PROTEC  2008-05-04 06:54:40 
Re: begginer question
Robert Redelmeier <red  2008-05-04 19:04:49 
Re: begginer question
Phat Sam <phatsam@[EMA  2008-05-04 09:20:56 
Re: begginer question
Prime Mover <epleite@[  2008-05-05 18:37:43 
Re: begginer question
"Wolfgang Kern"  2008-05-06 10:17:25 
Re: begginer question
"rio" <a@[EM  2008-05-06 16:39:34 
Re: begginer question
Prime Mover <epleite@[  2008-05-05 18:50:50 
Re: begginer question
"Wolfgang Kern"  2008-05-06 10:30:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 23:24:57 CDT 2008.