It appears that code generated from the compiler, uses two different
addresses to acces the same variable.
I have this variable defined at the top of the file:
static int m_timer_fired222;
And here is s snippet of code taken from the debugger in mixed mode:
while(m_timer_fired222 == 0)
;
P:00000129: BE38 tstw X:0x0038
P:0000012A: A37E beq main+0x2f (0x129) ; 0x000094
m_timer_fired222 = 0;
P:0000012B: 86F400430000 movei #0,X:0x0043
When it reads the variable it looks like it's using address 0x38, but
writing seems to happen at 0x43. Am I missing something here?
Mike