Re: 2K program memory limitation?

Alex Holden <[email protected]> Sat, 20 Nov 2004 12:33:49 +0000
Newsgroups gmane.comp.lang.forth.picforth
Message-ID <[email protected]>
David McNab wrote:
> Alex Holden wrote:
>> I was reading picforth.fs trying to fathom out how it works, when I 
>> came across this bit:
>> \ We are not being strict here. At this time, we assume that all the
>> \ code fits in 2kwords (11 bits addressing) and that main data fits in
>> \ one bank (except special registers).
>> 2000 constant code-size
>> Does this mean that picforth is only capable of using the first 2K 
>> instructions
> At that stage in picforth.fs, the radix has been set to hex.
> '2000' means 8192 bytes.

Ah! I remember why it confused me. The _comment_ says "2kwords (11 bits 
addressing)" even though the actual limit in the code is 8kwords (13 
bits addressing).

-- 
------------ Alex Holden - http://www.linuxhacker.org ------------
If it doesn't work, you're not hitting it with a big enough hammer