Hi Darrel, with a loop of 10 cycles the last MyData will contain the desired byte saving one line instruction. (Assume something less than 75 words)
Code:
DEFINE DEBUGIN_REG PORTB ' Debugin pin port
DEFINE DEBUGIN_BIT 3 ' Debugin pin bit
DEFINE DEBUGIN_MODE 0 ' Debugin mode: 0 = True, 1 = Inverted
DEFINE DEBUG_BAUD 2400 ' Debug baud rate
B0 VAR BYTE
MyData VAR BYTE
DEBUGIN [WAIT(85)] ' wait for 85
FOR B0 = 0 TO 9
DEBUGIN [MyDATA] ' skip 9 bytes
NEXT B0
'Last MyDATA will contain the desired byte
All progress began with an idea
Bookmarks