This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DPP2 suddenly used in (char __shuge *) assignment. Why?

Code:
char __shuge* ptr;
ptr = (char __shuge *)0x00CC2000;

Result:
ptr == 0x00332000

Disassembly:
MOV R4,#0x2000
MOV R5,#0x00CC
MOV DPP2:0x1DAE,R4
MOV DPP2:0x1DB0,R5

Question:
Why does Keil use DPP2 here? (if im not mistaken DPP2 is designed for 'near; vars)
Why do I get wrong result?
How may I fix this to get correct result?

Thank you!

0