Op Tue, 16 Aug 2005 00:56:40 +0100 schreef Steve at fivetrees:
> "Coos Haak" <> wrote in message
> news:ioogn445u1oh$....
>> Op 14 Aug 2005 21:53:53 -0700 schreef :
>>
>>> Are there really processors that point to the next location? If that
>>> were true the top of stack contents would not easily be accesible and
>>> the stack pointer allways points to garbage. Maybe you could post an
>>> example.
>>
>> Cosmac 1802.
>
> Blimey - that brings back memories. I had an eval board (hex keypad, hex
> display) for the 1802 circa '80 or so.... usual
> moonlander-in-hex-programming shenanigans...
>
> <sigh>
>
> Steve
> http://www.fivetrees.com
I haven't fired it up since I bought my ZX Spectrum in 1984. It was my
first computer and soon ran Forth on it, hence my knowledge of stacks ;-)
The push (STXD) was postdecrement and pointed to a free space on the
X-stack, handy if you wanted to do arithmetic while in a subroutine. The
pop (LDA) was postincrement and pointed afterwards to a previous value. You
had to use INC and DEC everytime. Sloppy of RCA, but the SCAL and SRET of
the 1806 cured that. But this one was as my memory goes not available at
that time.
Coos
--
CHForth, 16 bit DOS applications
http://home.hccnet.nl/j.j.haak/forth.html