
C2F_Table:
DW 0320H, 0329H, 0338H, 0347H
DW 0356H, 0365H, 0374H, 0383H, 
DW 0392H ...... and so on for 512 entries

;code snippett to look up in the table

	MOV  	A,R7               ;get low byte if C code
	ADD  	A,ACC
	MOV  	R7,A               ;mult by 2 and save back to R7
	MOV  	A,R6               ;mult high byte too
	RLC  	A
	MOV  	R6,A
	MOV  	A,#LOW (C2F_Table) ;add word index
	ADD  	A,R7               ;from R6::R7
	MOV  	DPL,A              ;to table address
	MOV  	A,#HIGH (C2F_Table)
	ADDC 	A,R6               ;and put into DPTR
	MOV  	DPH,A
	CLR  	A                  ;fetch high byte of 
	MOVC 	A,@A+DPTR          ;BCD from table
	MOV  	R6,A
	MOV  	A,#01H             ;fetch low byte of
	MOVC 	A,@A+DPTR          ;BCD from table
	MOV  	R7,A
