shouldnt the line "if B6 = $31 and B7 < $35 then twenf" read:
if B6 = $31 and B7 < $35 then GOTO twenf ?
or is the GOTO not required when using an if statement?
shouldnt the line "if B6 = $31 and B7 < $35 then twenf" read:
if B6 = $31 and B7 < $35 then GOTO twenf ?
or is the GOTO not required when using an if statement?
To my knowledge, "with picbasic, not pro"
The picbasic compiler will see the added "goto" as a undeclared symbol and choke on it.
the action is a goto, but the syntax is
if X = true then label
dw
The problem that I have with the statement is that when it is executed to the goto from the IF...THEN I used poke. When writing to a VAR I do not need the poke, but when I need to write to a address on the chip, per-say, that is when I would use the poke or peek. Example: POKE $86,0 for writing to the chip ;
(NOT CORRECT)
twenf:
poke B6,$32: poke B7,$35:goto cs
(CORRECT)
twenf:
B6 = $32 : B7 = $35 : goto cs
OR
twenf:
B6 = $32
B7 = $35
goto cs
Bookmarks