Still don't work...
First try:
Code:
;reading buttons on line 2
Portb.0 = 0
TrisA.1 = 1
pause 10
status_3 = PortA & %00011100
Portb.0 = 1
TrisA.1 = 0
select case status_3
case 20
gosub starting
While (PortA & %00011100) = 20
Gosub VolUp
wend
end select
Goto Main
the "code" generated is ... totally inadequate (picture 1).
Second try :
Code:
;reading buttons on line 2
Portb.0 = 0
TrisA.1 = 1
pause 10
status_3 = PortA & %00011100
Portb.0 = 1
TrisA.1 = 0
select case status_3
case 20
gosub Starting
Gosub VolUp
While (PortA & %00011100) = 20
Gosub VolUp
wend
end select
Goto main
the "code" generated is ...full, with "header" at any VolUp command ! (picture 2).
What do I do wrong ?
Bookmarks