Re: add with carry



"dave" <dlampley@xxxxxxx> wrote in message
news:1160089612.598285.244500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
(top-posting fixed)
[jongware] wrote:
"Herbert Kleebauer" <klee@xxxxxxxxx> wrote in message
news:45256C82.C5C81FB0@xxxxxxxxxxxx
dave wrote:

could someone explain to me if I'm adding 11h into 66h and moving it
into the al register, why do I have to use the adc function?

Because it is an exercise where you have to learn the usage
of the adc instruction?

Which brings us to the following questions. What do you need to do to get
the right answer? Why would it be possible to get a "wrong" answer
anyway?
(Why "wrong" and not plain wrong (without the quotes)?)

so, do I have to use the adc function for each add, or just for the
first?

As adc is generally used for _anything but the first_ add, you'd better
reread whatever documents you got at the moment. Seems you missed a point.
Oh, alright, another hint: what's the c in adc? The order "adc - add" is NOT
alphabetic!

[Jongware]


.



Relevant Pages

  • Re: add with carry
    ... into the al register, why do I have to use the adc function? ... Because it is an exercise where you have to learn the usage ...
    (alt.lang.asm)
  • Re: add with carry
    ... into the al register, why do I have to use the adc function? ... Because it is an exercise where you have to learn the usage ...
    (alt.lang.asm)
  • Re: add with carry
    ... so, do I have to use the adc function for each add, or just for the ... into the al register, why do I have to use the adc function? ... (Why "wrong" and not plain wrong (without the quotes)?) ...
    (alt.lang.asm)