Re: [cc65] Pointers for Porting to New Target

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-10-28 23:27:12


On Tue, Oct 28, 2003 at 04:14:17PM -0600, Geoffrey Wossum wrote:
> Shouldn't that be (__PARMSTACK_START__ + __PARMSTACK_SIZE__ - 1)?

No. The stack pointer points to the last value pushed, it is decremented
before something is stored. This is different from the hardware stack pointer
of the 6502, which does the store first and then the decrement.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-10-28 23:27:23 CET