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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/09/04 11:56
Read: times


 
#82823 - Jump Table?
Responding to: ???'s previous message
Is Jason wanting to implement a jump table perchance?


If bit 0 set goto label1
if bit 1 set goto label2
if bit 2 set goto label3
etc...


Or maybe a switch function?

mov a,P1
cjne a,#01,sw_1
sjmp label1
sw_1:
cjne a,#03,sw_2
sjmp label2
sw_2:
etc....

There's many ways of implementing such a thing. More specific info will return a more specific answer. Maybe the tutorials may be of assistance.










List of 14 messages in thread
TopicAuthorDate
DPTR for internal code            01/01/70 00:00      
   DPTR.......            01/01/70 00:00      
   Look at Instructions set            01/01/70 00:00      
   DPTR for code memory            01/01/70 00:00      
      Port scanning            01/01/70 00:00      
      DPTR and I/O Ports            01/01/70 00:00      
      Outputting and Inputting Bits            01/01/70 00:00      
         Jump Table?            01/01/70 00:00      
   It can Not            01/01/70 00:00      
   DPTR for code memory            01/01/70 00:00      
      Do the independent bit tests            01/01/70 00:00      
         very complex bit testing            01/01/70 00:00      
      Dptr for code memory            01/01/70 00:00      
   JB            01/01/70 00:00      

Back to Subject List