This is quite classic localization bug, don't know why it didn't think about this.
https://stackoverflow.com/questions/7684014/c-printf-with-f-but-localized-for-the-users-country
https://stackoverflow.com/questions/13919817/how-to-parse-numbers-like-3-14-with-scanf-when-locale-expects-3-14
They...
For the sake of documentation, I reached out on the SpinSemi forum and got a solution: https://www.spinsemi.com/forum/viewtopic.php?t=984
It had to do with the region format set on my machine, after I set it to English (United State) the problem was fixed.
Just as an example of what's happening, if I compile this code:
equ coeff 1.2
rdax adcl,coeff
wrax dacl,1.0
wrax dacr,0.0
This is what I get:
It's like anything after the decimal dot gets ignored.
Hey folks, this is my first post here and I'm a noob when it comes to FV-1 development.
I'm having a weird issue with SpinAsm IDE, which I couldn't find any info around.
Basically, whenever I use decimal numbers (eg: 0.123) the code simply does not work on the FV-1.
My current solution is to...