i got that part. luciano I get what you are saying. we are just getting crossed with the explanation.
ok get this. I am having problems with my program. I would like for the pointer that I have in my project (transmitter) to go to line four. I have the pointer start in column 2 on the LCD and go up and down. There are three screens that this pointer shows up on and the first screen it works on. The first screen it starts on the second line second column then goes down to line four. The problem that I am having is that I would like for this to happen on the second page also, go from line one to four then scroll to page three, but I can not get it to go down to line four. I have checked the program (transmitter) numerous amount of time and I can not seem to find what the problem is. Do you have any idea on that.
Where it starts:
CHANNELS:
line = linet
line = linet1
screen = screent
line = $81:val = $8E
CHANNELSA:
screen = 2
lcdout $FE, 1
pause 10
lcdout $FE, $93, CS1
lcdout $FE, $D3, CS2
lcdout $FE, $83, "Channel 1:"
lcdout $FE, $C3, "Channel 2:"
lcdout $FE, $97, "Channel 3:"
lcdout $FE, $D7, "Channel 4:"
gosub subval
gosub value
gosub pointer
pause 500
CHANNELSB:
goto channels1b
CHANNELS1B:
if PortB.7 = 1 or PortB.6 = 1 or PortB.5 = 1 or PortB.4 = 1 then pause 300
if PortB.7 = 1 or PortB.6 = 1 or PortB.5 = 1 or PortB.4 = 1 then CHANNELS1C
goto CHANNELS1B
CHANNELS1C:
if PortB.6 = 1 and PortB.7 = 1 then pause 300
if PortB.6 = 1 and PortB.7 = 1 then enter
if PortB.5 = 1 then meninc
if PortB.4 = 1 then mendec
if PortB.7 = 1 then chlinc
if PortB.6 = 1 then chldec
goto channels1b
This is where I think the problem is:
MENINC:
if line = $81 and Screen = 2 or screen = 3 then Line2
if line = $C1 and Screen = 1 or screen = 2 or screen = 3 then line3
if line = $95 and screen = 1 or screen = 2 then line4
if line = $D5 and screen = 2 then channels1 ' Scroll to page 3
goto scren
MENDEC:
if line = $D5 and screen = 1 or screen = 2 then line3
if line = $95 and screen = 1 or screen = 2 or screen = 3 then line2
if line = $C1 and screen = 2 or screen = 3 then line1
if line = $81 and screen = 3 then line4s ' Scroll to page 2
goto scren
LINE1: line = $81:val = $8E:goto scren
LINE2: line = $C1:val = $CE:goto scren
LINE3: line = $95:val = $A2:goto scren
LINE4: Line = $D5:val = $E2:goto scren
LINE4S: line = $D5:val = $E2:goto channelsa
Program continues with the loop:
SCREN:
if screen = 1 then menua
if screen = 2 then channelsa
if screen = 3 then channels1a
P.S. the program is posted earlier in the forum
Bookmarks