Hi,
Your code:
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
=============================
I don't work with PICBasic Pro, I just read this forum for ideas.
Anyway, I will try to help you. Below is my version of your code.
(You will have to fix also your code at label MENDEC).
PicBasic does not disntigush between upper or lower case, but please
be consistent when you write your code. Example, labels in upper case,
variable names in lower case.
Best regards,
Luciano
Code:
MENINC:
IF line = $81 THEN
If screen = 2 OR screen = 3 THEN LINE2
ENDIF
IF line = $C1 THEN LINE3
IF line = $95 THEN
IF screen = 1 OR screen = 2 THEN LINE4
ENDIF
IF line = $D5 AND screen = 2 THEN CHANNELS1
GOTO SCREN
Bookmarks