Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #41797

Re: bank switching words?

From Marcos Cruz <null_email_so_use_my_contact_page@programandala.net>
Newsgroups comp.lang.forth
Subject Re: bank switching words?
Date 2015-09-06 18:17 +0000
Organization Aioe.org NNTP Server
Message-ID <msi00d$ji8$1@speranza.aioe.org> (permalink)
References <bec20858-d02d-42d6-9ad9-25da42530052@googlegroups.com> <1e318abd-871c-4c01-b117-58745fb05a25@googlegroups.com>

Show all headers | View raw


En/Je/On 2015-08-30, Mark Wills <markwills1970@gmail.com>
escribió/skribis/wrote:

> Maybe this will give you some inspiration:
> http://turboforth.net/resources/sams.html

Mark, that is great.

In a Forth for ZX Spectrum 128, I store the name fields in a separate 16
KiB memory bank, with an additional field that links every nfa to its
cfa in main memory.  That saves a lot of dictionary space (c. 3 KiB on
the bare unexpanded system) and makes name lengths unimportant.  By
design, no field links the main headers to their name fields, what saves
2 bytes per word in the main memory.  Therefore `cfa>nfa` and others do
a brute force search, checking the pointers that link every name field
with its code field, but that's not a problem.

The way TurboForth words can be compiled in different memory banks
transparently is a great idea. I'll think about it. It could be useful
to compile the Z80 assembler permanently without wasting memory, instead
of using the usual tricks to compile it at a different location and then
disconnect it from the dictionary.

Regards,

-- 
Marcos Cruz
http://programandala.net

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

bank switching words? Mux <Yvo.Zoer@gmail.com> - 2015-08-29 11:46 -0700
  Re: bank switching words? Mark Wills <markwills1970@gmail.com> - 2015-08-30 11:23 -0700
    Re: bank switching words? Mux <Yvo.Zoer@gmail.com> - 2015-09-02 10:59 -0700
    Re: bank switching words? Marcos Cruz <null_email_so_use_my_contact_page@programandala.net> - 2015-09-06 18:17 +0000
  Re: bank switching words? Marcos Cruz <null_email_so_use_my_contact_page@programandala.net> - 2015-09-06 17:38 +0000
    Re: bank switching words? Mux <Yvo.Zoer@gmail.com> - 2015-09-07 21:40 -0700
  Re: bank switching words? Whammo <sidciavic@gmail.com> - 2015-09-09 20:00 -0700
  Re: bank switching words? Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2015-09-13 21:26 +0100

csiph-web