Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/22/08 15:18
Read: times


 
#151305 - Carry bit is used
Responding to: ???'s previous message
Robert Revens said:
... the point of this line?

cjne a,#3,AaaOfBbbbX1

Is it correct, or should it read cjne a,#3,AaaOfBbbbX2, because otherwise you finish up at AaaOfBbbbX1 regardless of the value in a, and you're not using the carry flag for anything either, as far as I can see...?


The SUBB instruction uses the carry bit. Otherwise, subtracting #00h would be pointless. It only makes sense since sometimes it's actually subtracting 1 (the value of the carry bit).

Regards,
Craig Steiner


List of 16 messages in thread
TopicAuthorDate
Weekend Quiz            01/01/70 00:00      
   This is only Thursday            01/01/70 00:00      
   initial conditions?            01/01/70 00:00      
      I can't tell...            01/01/70 00:00      
   It gives an error            01/01/70 00:00      
      it depends on the assembler            01/01/70 00:00      
   Jan, I sent an email clue             01/01/70 00:00      
   One Instruction...            01/01/70 00:00      
      well, I have a plenty of points...            01/01/70 00:00      
         Dedicated HW            01/01/70 00:00      
   I don\'t understand...            01/01/70 00:00      
      could these two be related?            01/01/70 00:00      
      Carry bit is used            01/01/70 00:00      
         Thanks Craig...            01/01/70 00:00      
         next time I will try to obfuscate...            01/01/70 00:00      
   Day Of Week calculation            01/01/70 00:00      

Back to Subject List