Wouldn't it shorten things to do this:
Code:if portb.7 = 1 then FOR i = 0 to 7 IF i = 2 then USBBuffer[i] = $33 ; 33=";" ELSE USBBuffer[i] = 0 ENDIF NEXT i gosub DoUSBOut ELSE ....clear buffer... ENDIF
Wouldn't it shorten things to do this:
Code:if portb.7 = 1 then FOR i = 0 to 7 IF i = 2 then USBBuffer[i] = $33 ; 33=";" ELSE USBBuffer[i] = 0 ENDIF NEXT i gosub DoUSBOut ELSE ....clear buffer... ENDIF
Last edited by andywpg; - 15th September 2014 at 23:29.
"I have noticed that even those who assert that everything is predestined and that
we can change nothing about it still look both ways before they cross the street"
-Stephen Hawking
Bookmarks