Mail Archives: djgpp/1999/02/04/23:13:05
Paul Derbyshire wrote:
>
> 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?
Correct.
> 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?
Yes. Move a long from y to eax, then add it to x. eax is just a
scratch register since we have no mem-to-mem adds.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -