Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 464 Bytes

Example4_counter.md

File metadata and controls

10 lines (9 loc) · 464 Bytes

This program illustrates 'call' to a subroutine. Pic16F628A does not suppotr 'call's, so replace C with G 'goto' for it.
Program uses strings, so if you don't have them repare last row leaving just '!V1'.

V1=0
J1
V2=10,V1=0,C+3        # set limit to 10, then call count subroutine
V2=20,V1=0,C+2        # set limit to 20, then call count subroutine
J1=0                  # kill job 1
?V1<V2 !"V1=%adV1",HT{1,s},V1=V1+1,G+0:E;
'0x1a'