Assembler code example
$0341   $300A                   MOVLW   10
$0342   $1303                   BCF     STATUS, RP1
$0343   $1283                   BCF     STATUS, RP0
$0344   $00B2                   MOVWF   simple_for_loop_i_L0
$0345   $3000                   MOVLW   0
$0346   $00B3                   MOVWF   simple_for_loop_i_L0+1
$0347   $       L_simple_for_loop_38:
$0347   $3080                   MOVLW   128
$0348   $0633                   XORWF   simple_for_loop_i_L0+1, 0
$0349   $00F0                   MOVWF   STACK_0
$034A   $3080                   MOVLW   128
$034B   $0270                   SUBWF   STACK_0, 0
$034C   $1D03                   BTFSS   STATUS, Z
$034D   $2B50                   GOTO    L_simple_for_loop_51
$034E   $300A                   MOVLW   10
$034F   $0232                   SUBWF   simple_for_loop_i_L0, 0
$0350   $       L_simple_for_loop_51:
$0350   $1803                   BTFSC   STATUS, C
$0351   $2B58                   GOTO    L_simple_for_loop_39
$0352   $0832                   MOVF    simple_for_loop_i_L0, 0
$0353   $0086                   MOVWF   PORTB
$0354   $0AB2                   INCF    simple_for_loop_i_L0, 1
$0355   $1903                   BTFSC   STATUS, Z
$0356   $0AB3                   INCF    simple_for_loop_i_L0+1, 1
$0357   $2B47                   GOTO    L_simple_for_loop_38
$0358   $       L_simple_for_loop_39:
$0358   $0008                   RETURN