So say

FOR A=1 to 20
HIGH PORTA+A
NEXT

will work?
do you think that looks even close ?


Code:
FOR A=0 to 20
  PORTA.0[A]=1
NEXT
assuming the 18 [chip dependent] pins in that range are set as digital output