This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Does DSS scripting supports reading and writing float values through DSS APIs? If not, how we can handle this?
For example:
var wrtaddW1XDCR = debugSession.memory.writeData(0, addW1XDCR, 100.25, 32)
The API "writeData" accepts only integer value so it truncates to 100 and pass the argument.
Hi,
No, there is no API that performs the direct write of float or double variables to memory. You will need to convert the float values to their representation in hexadecimal (IEEE format) to be written to memory.
There are many calculators around the web, but one that I find very useful is here.
Hope this helps,
Rafael