Posted By
   JamesC on 2008-12-24 09:27:11
  |   Re: How retrieve stack pointer
  The Stack Pointer (.SP) is internal to the processor. It cannot be manipulated directly, only by adding or removing things from the stack. (Source: Commodore 16 Exposed, page 130)
  However, since MONITOR is able to obtain .SP from the processor somehow (to display it), disassembly of MONITOR would point you to the method used.
  |