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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/01/08 04:50
Modified:
  03/01/08 04:52

Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#151706 - Try this
Responding to: ???'s previous message
;       The following two instructions jump to IS_EQUAL if A is
;       equal to 5, and fall through to NOT_EQUAL if A is not equal
;       to 5.

	CJNE	A,#5,NOT_EQUAL
	JMP	IS_EQUAL
NOT_EQUAL:

;	Stuff here is skipped A is equal to 5

IS_EQUAL:

; 	Stuff here is executed in either case.


List of 8 messages in thread
TopicAuthorDate
CJNE Question            01/01/70 00:00      
   CJNE method            01/01/70 00:00      
      CJNE method            01/01/70 00:00      
         Try this            01/01/70 00:00      
   Program counter            01/01/70 00:00      
   CJNE Alternatives            01/01/70 00:00      
      XOR            01/01/70 00:00      
   example            01/01/70 00:00      

Back to Subject List