I found a bug in the I2CWRITE command when using LMM.
The generated PASM code uses:
ror $,#1 ' Set Carry
But "$" is usually greater than $1FF in LMM, so this line throws an error and won't work to set the carry flag.
I'll have to try to figure out some other way to set the carry flag in LMM that only uses one instruction. If you know of a way to do it, please write a comment. If I can't figure something out, I'll ask in the Parallax Forums.
Bean
No comments:
Post a Comment