Professional Documents
Culture Documents
mbas
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
program sub_rutinas
Dim a,b,c,d as word
trisb=%00000000
trisa=%11111
portb=0
main:
if porta.0=1 then
GOSUB cont1
end if
if portb.1=1 then
gosub cont2
end if
goto main
cont1:
portb=66
return
cont2:
portb=111
return
end.
1/1