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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/19/05 11:47
Read: times


 
#102615 - revised :
Responding to: ???'s previous message
I revised with the CJNE function for the checking routine. Less messy, works just as good too. I am learning.

	CJNE	R3,	#128,	Checkleft	; Compare R3 to 128. If R3 is less than 128, no trigger, C is set.
Checkleft:
	JNC	Trigger1			; If C is set, no trigger, so do not jump.  If C is NOT set, jump.

	CJNE	R4,	#128,	Checkright	; Compare R3 to 128. If R3 is less than 128, no trigger, C is set.
Checkright:
	JNC	Trigger2			; If C is set, no trigger, so do not jump.  If C is NOT set, jump.


I did have some problems at first because I was using JC and not JNC, then I realized the IR sensors are active low, which
reversed everything.

Also, thanks Jan, for that link to the ZIP file with the HLP in
it. Thats pretty much what I needed; trying to get this 10yr
old hunk of crap computer to load PDFs is... stressing.

On a side note, don't buy or use "programming and customizing
the 8051 microcontroller"; it makes way to many assumptions
about your past with microcontrollers. Judging by Myke Predko's
website, he didn't take this into consideration as he has many
books on other micros. From his perspective as a writer, that
makes it harder to write a book for beginners.

List of 20 messages in thread
TopicAuthorDate
tablebot            01/01/70 00:00      
   RTFM            01/01/70 00:00      
   from the tutorial            01/01/70 00:00      
      thank            01/01/70 00:00      
      the tutorial explanation is incomplete            01/01/70 00:00      
         Only the Bible?            01/01/70 00:00      
            OT: Maxwell's equations            01/01/70 00:00      
               OT: Life            01/01/70 00:00      
                  thanks for the input all, but krap!            01/01/70 00:00      
               no acc load needs            01/01/70 00:00      
                  of course            01/01/70 00:00      
                  revised :            01/01/70 00:00      
                     comments            01/01/70 00:00      
            Only the bible?            01/01/70 00:00      
               bible?            01/01/70 00:00      
                  The point of "the bible" is not that any            01/01/70 00:00      
                  Daunting?            01/01/70 00:00      
                     pos comp            01/01/70 00:00      
                        The female must have seen the bike :)            01/01/70 00:00      
                        alternative pdf readers            01/01/70 00:00      

Back to Subject List