[comp.sys.apple2] gs/os automatic allocation of dp/stack

acmfiu@serss0.fiu.edu (ACMFIU) (05/23/91)

the manual says gs/os automatically allocates 4 pages of dp/stack space
for programs when InitialLoad loads them in. am i correct in assuming
this is
	1 page dp space
	3 pages stack space

albert

ujmurphy@KING.MCS.DREXEL.EDU (Jim Murphy) (05/23/91)

In message-Id: <3627@kluge.fiu.edu> albert asked:

> the manual says gs/os automatically allocates 4 pages of dp/stack space
> for programs when InitialLoad loads them in. am i correct in assuming
> this is
>        1 page dp space
>        3 pages stack space
>
> albert

     Not really. It's not 4 pages, it's 4K. The direct register gets set
to the bottom of the block, and the stack pointer gets aligned to the top
of the block. You can use more that one page for the dp, you just have
to know how to use it efficiently. Email for examples.
                                       
 
Jim Murphy                             "Whatever this is supposed to do,
Internet:  ujmurphy@mcs.drexel.edu     it's not doing it very well." - Me.
GEnie:     J.MURPHY7                   
AOL:       Jim Murphy