Re: [Sdcc-user] Expected value of P2 on the 8051

2010-05-26 Thread Peter Van Epp
On Wed, May 26, 2010 at 10:47:50AM +0200, Maarten Brock wrote: > Peter, > > Since the W7100 uses the value of P2 for MOVX @Ri instructions, P2 should > have the correct value. SDCC supports only one page of 256 bytes and sets > P2 to the correct value during startup (not neccesarily 0). If you als

Re: [Sdcc-user] Expected value of P2 on the 8051

2010-05-26 Thread Maarten Brock
Peter, Since the W7100 uses the value of P2 for MOVX @Ri instructions, P2 should have the correct value. SDCC supports only one page of 256 bytes and sets P2 to the correct value during startup (not neccesarily 0). If you also use P2 for an LCD then either don't use PDATA or be very careful around