To use instruction MOVC A, @A+PC you need to place the DB values right below the RET instruction and pre-load A with the value starting (initially) from the first number ..
Then save the A-value in another register (Rx or B) and use it (increased) in the next iteration of the loop ..
Example:
Code:
Table:
INC A
MOV B, A
MOVC A, @A+PC
RET
DB 10h, 20h, 30h, 40h, 50h
To call this subroutine do the following:
Code:
MOV B, #00h
...
Del_Loop:
MOV R2, #20
MOV A, B
LCALL Table
…
…
DJNZ R2, Del_Loop