Hello,
Can someone help me to better understand the MAC algorithm? I've done the hex calculation by hand over and over but the result produced by CCS is not what I expected. I am not sure what is happening with the code after I step through the line..
The accumulator A has the value 0009A8ECAEh.
The two hex numbers I am trying to multiply together are 05DDh and C2FAh. FRCT mode and SXM mode are both on.
The product I expect to get is 8EE67A4h.
Adding this product to the accumulator, I expect to get 12975452h, but instead I get 06DD0000h (using MACR).
Does anyone know why? If it matters, T3 is set as 09A9 right before the step into the MACR instruction.
Any help would be appreciated, and thanks!