
snip-----------------------------snip

        mov dptr, #COMMAND1 ;This is the line I want to change
	call FORMAT_DATA_BLOCK
	call SEND_DATA

snip-----------------------------snip


snip-----------------------------snip
FORMAT_DATA_BLOCK: 

CLR A
	mov R1, #SEND_BUFFER ;location in databuffer
	movc a,@a+dptr
	mov R0, a            ;R0 is length of data 
	inc dptr
	
LOOP:
	clr A
	movc a,@a+dptr
	mov @R1, a 
	Inc R1
	inc dptr
	djnz R0, LOOP

...     ;Code here to format data
...

RET

snip-----------------------------snip

snip-----------------------------snip

COMMAND1: db 6, 00h, 01h, 02h, 03h, 04h, 05h
COMMAND2: db 7, 00h, 02h, 04h, 06h, 08h, 0Ah, 0Ch

snip-----------------------------snip
