Is it a correct assumption that the compiler is expecting the P2 port
value to be 0 for use with movx @r0,a type instructions? On my particular 
varient (wiz7100) bits 15 to 8 are set by the P2 register (which is also used
for an LCD display which presents a potential problem ...). I see in the 
startup code that P2 is set to 0 and nothing thereafter seems to change it
so I'm assuming that the compiler expects to things stored by movx @r0
to be in the first 256 bytes of XDATA and thus I need to make sure that 
P2 is set to 0 most of the time. 

Peter Vsn Rpp

------------------------------------------------------------------------------

_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to