I'm making good progress with my code thanks.

I have a couple of questions about Arrays and the addressing of them with pbp.

If I define an array thus.
Code:
BCMDATA VAR BYTE[11]		'Define BCMDATA as a byte array (11 Bytes)
I get an array 11 bytes long and the address of the first byte is

BCMDATA[0] and the last BCMDATA[10] ?

Is that correct.

Now onto for next loops.

Code:
CalcSum:					'Calculate Packet CheckSum Routine
	
	For Count1 = 0 to 10			'For Count1 = 0 to 10 (Start 11 byte loop)
	CheckSum = CheckSum + BCMDATA[Count1]	'Add Bytes
	Next Count1				'Repeat until 11 bytes added
	CheckSum = NOT CheckSum			'Not CheckSum
	CheckSum = CheckSum + 1			'Add 1 to CheckSum
	BCMDATA[10] = CheckSum AND $7F 		'AND result
	Return					'Return
In this code how many times does it complete?
And on the first pass through the loop Count1 =0 does it not?
And on the last pass through the loop Count1 = 9 or 10

So if count1 = 9 it goes through the loop, if it = 10 it jumps over it?

Just checking my understanding. Thanks