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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/23/04 13:57
Read: times


 
#78009 - RE: Modifying the program counter
Responding to: ???'s previous message
Perhaps best way of calculated jump is a Jump Table. If you have number of option (0 to n) in ACC, then
	MOV	DPTR,#JMPTAB
	RL	A		; Mply by two
	JMP	@A+DPTR

JMPTAB:
	AJMP	OPTION0
	AJMP	OPTION1
	AJMP	OPTION2
    ...
	AJMP	OPTIONN
If not all options can be made within the current 2kb page, you should multiply ACC with 3 and use LJMPS in the table.

Regards, Slobodan


List of 14 messages in thread
TopicAuthorDate
Modifying the program counter            01/01/70 00:00      
   RE: Modifying the program counter            01/01/70 00:00      
      RE: Modifying the program counter            01/01/70 00:00      
         RE: Modifying the program counter            01/01/70 00:00      
            RE: Modifying the program counter            01/01/70 00:00      
   RE: Modifying the program counter            01/01/70 00:00      
      RE: Modifying the program counter            01/01/70 00:00      
         RE: Modifying the program counter            01/01/70 00:00      
   RE: Modifying the program counter            01/01/70 00:00      
      RE: Modifying the program counter            01/01/70 00:00      
         RE: Modifying the program counter            01/01/70 00:00      
   RE: Modifying the program counter            01/01/70 00:00      
      RE: Modifying the program counter            01/01/70 00:00      
      RE: Modifying the program counter            01/01/70 00:00      

Back to Subject List