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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/15/07 17:16
Read: times


 
#141906 - try the following
Responding to: ???'s previous message

my_cmd:      mov a,cmd             ;value 1 - ...
             rl a                  ;ajmp = 2 Bytes
             mov dptr,#CMD_TABLE   ;pointer @ cmd_table
             jmp @a+dptr           ;execute commands
CMD_TABLE:   ajmp cmd_1
             ajmp cmd_2
             ajmp cmd_3
             ajmp cmd_4
             ajmp cmd_5




List of 11 messages in thread
TopicAuthorDate
Code Reduction            01/01/70 00:00      
   Yes: Think!            01/01/70 00:00      
   Sure!!            01/01/70 00:00      
   vs readability & expandability            01/01/70 00:00      
      RE:Code Reduction            01/01/70 00:00      
   you can use            01/01/70 00:00      
      Like switch case            01/01/70 00:00      
         Explain            01/01/70 00:00      
         Varaible Size            01/01/70 00:00      
   try the following            01/01/70 00:00      
      that's what i mean indirect            01/01/70 00:00      

Back to Subject List