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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/23/12 16:05
Read: 1054 times


 
Msg Score: -1
 -1 Didn't Search First
#186839 - 16 bit vs 8bit signed compare
Hello..

How I can test 16 bit signed integer in asm.
Ie I have r0 as MSB and r1 as LSB and want to test if its greater against Acc.
The r0/r1 pair is signed 16 bit and Acc is signed 8 bit.
Probably need to extend Acc to 16 bits (not problem) but how to perform test to be borrect in all -+ cases?

List of 5 messages in thread
TopicAuthorDate
16 bit vs 8bit signed compare      Slavko Kocjancic      03/23/12 16:05      
   8051 arithmetic 16 bit signed integer      KONSTANTINOS L. ANGELIS      03/23/12 17:15      
      The answer is MSB bit      Slavko Kocjancic      03/24/12 00:28      
         Both Carry and MSB      Maarten Brock      03/24/12 01:25      
   < Have tried "Tutorials" there?      Chico Magalh„es      03/24/12 01:27      

Back to Subject List