Post Reply 
FORTH for the HP 50G
09-29-2022, 10:14 PM
Post: #5
RE: FORTH for the HP 50G
(09-29-2022 12:09 AM)dmh Wrote:  The default cell size is 16 bits and signed so this calculation is on these limits (note 16383 2 * . works). I'm not sure how FORTH typically handles this but it may not be consistent with all implementations. I will have a look into it though.

I have several Forth systems that I can test with Dosbox, and they all give -32768 as a result for this operation, which seems logical.
The standard however doesn’t precise the behavior, if I understand correctly:
https://forth-standard.org/standard/core/Times


(09-29-2022 12:09 AM)dmh Wrote:  I have noticed that many FORTH implementations don't have a standard way of listing words and this implementation doesn't include one either.

What is the defacto standard for this? I've also noticed some list new words and some list all.

Again, all the Forth system I know give the entire list of words.
https://forth-standard.org/standard/tools/WORDS

I don't know how lbforth is built. I see that WORDS is defined in this file:
https://github.com/larsbrinkhoff/lbForth.../tools.fth
Does that mean that only a few words are available, and that other words must be compiled?

I've noticed that when Forth is terminated with BYE, all definitions are lost. Maybe it's expected, but it's not convenient Wink

Jean-Charles
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
FORTH for the HP 50G - dmh - 09-28-2022, 03:08 PM
RE: FORTH for the HP 50G - Helix - 09-28-2022, 11:52 PM
RE: FORTH for the HP 50G - dmh - 09-29-2022, 12:09 AM
RE: FORTH for the HP 50G - Helix - 09-29-2022 10:14 PM
RE: FORTH for the HP 50G - dmh - 09-29-2022, 12:33 AM
RE: FORTH for the HP 50G - dmh - 09-30-2022, 12:13 PM
RE: FORTH for the HP 50G - dmh - 09-30-2022, 07:11 AM
RE: FORTH for the HP 50G - Helix - 10-01-2022, 05:14 PM
RE: FORTH for the HP 50G - dmh - 10-02-2022, 01:50 AM
RE: FORTH for the HP 50G - Helix - 10-02-2022, 12:49 PM
RE: FORTH for the HP 50G - dmh - 10-02-2022, 12:57 PM
RE: FORTH for the HP 50G - Helix - 10-02-2022, 02:14 PM



User(s) browsing this thread: 1 Guest(s)