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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/08/01 17:38
Read: times


 
#7989 - RE: Serial Port Weird Problem
Dixon,
Because JZ and JNZ check the contents of the accu, not some flag. As soon as the accu contains 0, JNZ will *not* branch, because the accu contains 0.
Most other processors contain a zero flag, but not the 8052.
While designing code for the 8052, keep good track of what every instruction does with the flags in PSW.
Another good example of awkward flag behaviour is that INC and DEC do not influence carry. There are more situations. For reference, use the PDF at http://www.semiconductors.philips.com/acrobat/v...UIDE_1.pdf


List of 17 messages in thread
TopicAuthorDate
Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      

Back to Subject List