Hi,
I think that is what Bruce was trying to help you with. TMR0 has a byte sized register that you can read and write just like any other variable. If you don't use TMR0 for its intended purposes you can "borrow" its register and use as a normal variable.
So instead of declaring B0 as a BYTE and use that you simply use the TMR0 "variable".
Code:
MyData VAR BYTE
DEBUGIN [WAIT(85)] ' wait for 85
FOR TMR0 = 0 TO 9
DEBUGIN [MyDATA] ' skip 9 bytes
NEXT TMR0
'Last MyDATA will contain the desired byte
If you want you can create an alias for TMR0 like any other variable: Now reading and writing B0 will actually read and write TMR0. Personally I think spelling out TMR0 in the code better shows what is actually going on though.
I hope that helps and that it is what Bruce was thinking.
/Henrik.
Bookmarks