Marten, >When you say identical, do you mean identical to each >other or to the above? In other words is it still STA >$00 or is it STA $40 ? >
Sorry for being ambiguos, what I mean is that both using data-loc $40 and data-loc $140 both produce STA $40 >Have you tried without --data-loc? > Good point, had not tried it before your email, but now I have: Without data-loc the those variables we are talking about are allocated at $0080 so the code becomes STA $80, which is correct or at least works. This however implies that the compiler is not using the valuable RAM between $40 - $7F. Also this raises further questions: What are the limitations here, does the compiler ever need more that the what is available on page zero (128 bytes if it starts at 0080)? What happens if it runs out of space? Shouldn't the data-loc to enable use of RAM beyond zero page? Or warn at least if it is set outside the page? br Kusti ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user