Auxiliary Carry Flag Help

Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Oct 2009
Posts: 2
Reputation: assembly101 is an unknown quantity at this point 
Solved Threads: 0
assembly101 assembly101 is offline Offline
Newbie Poster

Auxiliary Carry Flag Help

 
0
  #1
Oct 13th, 2009
I am trying to find out if the Auxiliary carry flag only turns on when the 4th bit carries out from the 3rd bit or if it will turn on for the 7th to 8th bit aswell. This is what I did already:

mov ax, 0Fh ; this is the test for the 3rd to 4th
add ax, 1 ; AC=1


mov ax, 00F0h ; this is the test for the 7th to 8th
add ax, 0010h ; not sure if this should set AC=1
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 830
Reputation: wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all 
Solved Threads: 94
wildgoose's Avatar
wildgoose wildgoose is offline Offline
Practically a Posting Shark
 
0
  #2
Oct 14th, 2009
The Auxiliary Carry (AF bit of Status Flags) is used for the carry out of bit 3 (0...7) into bit 4 for use in BCD operations! Think of it as a nibble carry!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum


Views: 371 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Assembly
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC