¿ªÔÆÌåÓý

Re: TXTLIB and Stack Question


 

On Fri, Feb 28, 2020 at 10:40 AM, Steven Fosdick wrote:
360/370 instructions that access memory are base register+displacement
or base register+index register+displacement. The displacement is 12
bits so can only address 4K.

But if R13 is being used as a stack pointer and moves with each call
and return that surely means that the amount of stack any one
subroutine can use for local variables is limited to 4K but the stack
as a whole could be much bigger.
Thanks - I was not aware that I had a 4k limit for local variables in a function, so useful!

Join [email protected] to automatically receive all group messages.