I have a periperal decleared called pGraphicCTRL.
Writing data to this address works fine.
but I wont to do this.
pGraphicCTRL = pGraphicCTRL | Graphic_CD
This should generate a read and then a write on the data bus. I only get a write.
if I change it to
cControl = pGraphicCTRL;
pGraphicCTRL = cControl | Graphic_CD;
I still only get a write and if I step though the code the cControl = pGraphicCTRL line is not compiled in.
Is this a optimizer thing if so its great job but not this time. What if my signal lines are different.
How do I get around it.
Can I turn the optimizer off?