delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/04/02:53:10

Message-Id: <3.0.6.32.19990204025117.008ee990@pop.netaddress.com>
X-Sender: pderbysh AT pop DOT netaddress DOT com
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32)
Date: Thu, 04 Feb 1999 02:51:17 -0500
To: djgpp AT delorie DOT com
From: Paul Derbyshire <pderbysh AT usa DOT net>
Subject: Re: Question about long long math on intel archs
In-Reply-To: <36B7A3E8.BD49F3BC@cartsys.com>
References: <3 DOT 0 DOT 6 DOT 32 DOT 19990202153421 DOT 0091a590 AT pop DOT netaddress DOT com>
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

At 05:18 PM 2/2/99 -0800, you wrote:
>movl y, %eax
>addl %eax, x
>movl y+4, %eax
>adcl %eax, x+4

I assume adcl uses the carry from the first add?
This leaves one question. If the result of the adds is left in eax it never
gets saved and the second add clobbers the result of the first one. Or does
addl/adcl put the result in the address at right, x and then x+4?
-- 
   .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
-()  <  circles, and bark is not smooth, nor does lightning travel in a
   `*'  straight line."    -------------------------------------------------
        -- B. Mandelbrot  |http://surf.to/pgd.net
_____________________ ____|________     Paul Derbyshire     pderbysh AT usa DOT net
Programmer & Humanist|ICQ: 10423848|

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019