Post Reply 
FORTH for the HP 50G
09-30-2022, 07:11 AM (This post was last modified: 09-30-2022 03:00 PM by dmh.)
Post: #6
RE: FORTH for the HP 50G
Here is WORDS. I'll add it to the next update. In the meantime add to string before starting FORTH:

Code:

: WORDS HERE CELL - @ BEGIN DUP CELL + DUP 1+ SWAP C@ 31 AND TYPE SPACE @ DUP @ 0= UNTIL CELL + DUP 1+ SWAP C@ 31 AND TYPE ;

The result you get makes sense but from further research (not just FORTH) it appears the result for this is undefined which means anything could be returned I guess.

Yes, state isn't saved when you quit (BYE), as per original version, sorry. I guess I would add everything to the load string but that doesn't help while you are developing something interactively.

Options I guess are saving the actual memory state or decompiling it back to a string to put on the stack. First option sounds easier :-)

Calculator Clique on YouTube
Visit this user's website 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)