
; here we have number of table (elmN) we look for in Accumulator (0...127)
; and DPTR is loaded with address of table of 16-bit pointers to them
DPTR_FROM_CDPTR_AX2:
; calculate dimension over table of 16-bit values
	ADD	A,ACC				; x2 due 16 bit 
	ADD	A,DPL
	MOV	DPL,A
	JNC	ADD_DPTR_END
	INC	DPH
ADD_DPTR_END:
;here DPTR contains pointer to the 16-bit address of table (elmN)
; load this address into DPTR
	MOV	A,#1
	MOVC	A,@A+DPTR			; low byte of address
	PUSH	ACC
	CLR	A
	MOVC	A,@A+DPTR			; high byte of address
	MOV	DPH,A
	POP	DPL
	RET