Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
The carry flag   Message List  
Reply | Forward Message #13880 of 15019 |
Re: The carry flag

--- In gbadev@yahoogroups.com, "Morten Pedersen" <escapekey@s...> wrote:
>
> of course this might very well be purely academic, but the result
> is still incorrect regardless of how you turn it. ((0-0)+0+(c))
> should never result in 1.

Academically, does Peano arithmetic define 'c'?

What's incorrect academically is to use the carry flag for anything
other than carrying from less significant to more significant place
values. Starting again at the lowest place requires resetting the
carry, that is, using SUB or ADD instead of SBC or ADC.

It's like claiming that little-endian storage of integers is incorrect
because the English language writes them big-endian.

--
Damian





Wed Apr 2, 2003 11:45 pm

yerricde
Offline Offline
Send Email Send Email

Forward
Message #13880 of 15019 |
Expand Messages Author Sort by Date

of course this might very well be purely academic, but the result is still incorrect regardless of how you turn it. ((0-0)+0+(c)) should never result in 1. as...
Morten Pedersen
escapekey@...
Send Email
Apr 2, 2003
11:36 pm

... Academically, does Peano arithmetic define 'c'? What's incorrect academically is to use the carry flag for anything other than carrying from less...
Damian Yerrick
yerricde
Offline Send Email
Apr 2, 2003
11:54 pm

... This really perplexed me so I tried it out myself as a sanity check. I was unable to reproduce this behaviour either in VBA or on the hardware. ?!?...
Chris Hayton
you_oughta_b...
Offline Send Email
Apr 3, 2003
2:16 am

i cant reproduce it either so i probably forgot the s bit or something anyway, cheers all ... From: "Chris Hayton" <chayton@...> To:...
Morten Pedersen
escapekey@...
Send Email
Apr 3, 2003
9:36 am
 First  |  |  Next > Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help