In the SpinASM User Manual PDF (page 37), the 2nd parameter in the LOG command is D: "an offset to be added to the logarithmic value in the range of –16 to + 15.999998" in 11bit S4.6 format.
However on the website http://www.spinsemi.com/knowledge_base/ ... x.html#LOG it says the 2nd parameter in the LOG command is 11bit from -1.0 to +0.999.
What's even stranger, is that SpinAsm IDE accepts from -16 to 15.999, but the values seem to overflow @ offsets of 2, 4, 6, etc.
Here's a concrete example showing what I mean by overflowing. All six of these lines compile to the exact same machine code [2000000B]:
Code: Select all
LOG 0.5,-14
LOG 0.5,-2.0
LOG 0.5,0
LOG 0.5,2.0
LOG 0.5,4.0
LOG 0.5,6.0
Code: Select all
LOG 0.5,1.0
LOG 0.5,-1.0
Can anybody confirm?