Debugger: Add note about nStack being modified for _6502_PeekStackReturnAddress

This commit is contained in:
michaelangel007 2023-03-29 15:13:47 -07:00
parent 9e55613a5d
commit 64b4fb771a

View File

@ -468,7 +468,11 @@ WORD _6502_GetStackReturnAddress ()
return nAddress;
}
// NOTE: nStack is both an input and output
// NOTES: nStack is both an input and output;
// If nStack is 0x1FF it WILL return overflow 0x200. Current callers are:
// _6502_FindStackReturnAddress(), and
// _6502_GetStackReturnAddress()
// which DON'T return this overflow stack value to previous callers.
//===========================================================================
WORD _6502_PeekStackReturnAddress (WORD & nStack)
{