Author Message

Is it better if u use add allways with carry?

Thu, 25 Jul 2002 03:00:00 GMT  
On Sun, 06 Feb 2000 16:33:38 GMT, "henrik ij?s"

> Is it better if u use add allways with carry?

Probably not, but it really depends on what you are trying to do, and
the processor you are trying to do it on.

If you have a large number and you have to add it in pieces, one byte
or word at a time, when you start with the lowest byte or word you
have to do one of two things, either add without carry, or first
execute an extra instruction to clear the carry and then you can add
with carry.

The 6502 microprocessor used in the original Apple II computer only
had one add instruction, add with carry.  So you always had to put an
instruction to clear the carry before the addition of two byte values,
or of the first bytes of a multibyte addition.

Jack Klein

Thu, 25 Jul 2002 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Carry Lookahead Adder / manchester carry

2. Carrying Application to other PC.

3. Comus for obtaining carry flag?

4. Who carries FUNCKY ANYMORE?

5. Harris RTX eval board - carry bit problem

6. Call for Participation: Workshop on Proof-Carrying Code

7. Please fix corrupted demo-VI at NI ftp server - so I can carry on programming

8. UV4: Second Web-Server carrying Unified V4

9. SuperNews doesn't/won't carry comp.lang.ruby

10. SuperNews doesn't/won't carry comp.lang.ruby

11. Carry Word, Powerpoint, Excel files while travelling

12. ALU carry out, and overflow


Powered by phpBB® Forum Software