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.
Hello
I am using controller "F280049CPZQR"
I am implementing a Core test module that tests the basic functionality which includes
ALU test of the controller such as multiplication, division, and Addition
Multiplier Accumulator test
Barrel Shifter test
In the above test cases, i will be checking the basic operation of the controller and checking it with the expected value to ensure controller working fine
For this, I wanted to read overflow, zero, negative, and carry flag status as the status of them available in the register ST0 and ST1 I wanted to read them
Can I get a sample C code to read them?
Hi Akshay,
The ST0 and ST1 can only be accessed via push and pop instructions, The following document details the instructions.
https://www.ti.com/lit/ug/spru430f/spru430f.pdf
You can embed assembly instructions in your C code or create C callable assembly functions. The following document indicates how to do this:
https://www.ti.com/lit/ug/spru514v/spru514v.pdf
Thanks,
Ashwini