[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: header pin numbering



Exegete <millers@noneofyourbusiness.com> wrote:

> Bryan Parkoff wrote:
> >     Okay, 6502/65c02/65816 have 256 byte size for stack, 
> 
> I seem to recall that the 65816 could have a much larger stack than a
> single page.

In emulation mode, it has the same restriction as the 6502 and 65C02
(256 bytes).

In native mode, the 65816 stack pointer is 16 bits with an implied bank
of zero, so the theoretical limit of the stack is 64 KB, but it is
shared with other uses of bank 0 which limits the maximum size somewhat.
In addition, the IIgs architecture has the issues of backward
compatibility with 8-bit Apple II models, which limits the amount of
contiguous RAM available in bank 0 to about 46 KB.

> > but x86 gives the flexible size for stack.  It can be 65536 byte size
> > that we want to select. What about 680xx and PowerPC's stacks?  How many
> > maximum size can stack support?

The 680x0 and PowerPC have 32-bit stack pointers, so they can
theoretically support a stack of up to 4 gigabytes.