Post Reply 
Forth-41
10-13-2022, 10:06 AM
Post: #43
RE: Forth-41
I've discovered that WORDS / VLIST is very implementation specific so I've written one from scratch for FORTH-41 which I've included below.

As none of FORTH-41 primitives are implemented in FORTH (probably for performance) this will only show user created variables and words (along with one builtin called FORTH). The builtin primitives are listed in CAT 2 anyway.

WRDS will list all user definitions and uses WRD to print each word name. TYPE can't be used due to the last character including a flag.

Code:
HEX
: WRD DUP M1+ SWAP
C@ 1F AND 0 DO
  DUP MM> I + >MM C@
  7F AND EMIT
LOOP DROP ;

: WRDS HEX DB @ 
BEGIN
  DUP M2- SWAP
  WRD @ DUP WHILE 
  SPACE
REPEAT DROP ;

Note, the manual says the address of the last name is at 0x0da but it's actually at 0x0db as per the diagrams. This is used as the starting point for retrieving definition names and then working back through all of them from there.

(09-09-2022 11:29 AM)Joe Horn Wrote:  VLIST can be added to the dictionary by typing in the short program for it on page 32 of the HP 82441A FORTH/Assembler ROM Owner's Manual.

EDIT -- Oops, I don't know what modifications need to be made to that program to port it from HP-71 FORTH to Forth-41.

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-41 - jjohnson873 - 12-04-2020, 09:48 PM
RE: Forth-41 - hth - 12-04-2020, 10:03 PM
RE: Forth-41 - Craig Bladow - 12-05-2020, 12:25 AM
RE: Forth-41 - hth - 12-17-2020, 06:17 PM
RE: Forth-41 - Craig Bladow - 12-17-2020, 06:38 PM
RE: Forth-41 - hth - 12-17-2020, 11:05 PM
RE: Forth-41 - Craig Bladow - 12-18-2020, 01:27 AM
RE: Forth-41 - Ángel Martin - 12-06-2020, 07:58 AM
RE: Forth-41 - rprosperi - 12-04-2020, 11:40 PM
RE: Forth-41 - jjohnson873 - 12-05-2020, 01:52 AM
RE: Forth-41 - Gene - 12-05-2020, 02:05 PM
RE: Forth-41 - Sylvain Cote - 12-05-2020, 02:43 PM
RE: Forth-41 - Ángel Martin - 12-06-2020, 07:53 AM
RE: Forth-41 - rprosperi - 12-06-2020, 01:47 PM
RE: Forth-41 - ThomasF - 12-05-2020, 08:52 AM
RE: Forth-41 - Sylvain Cote - 12-05-2020, 02:49 PM
RE: Forth-41 - Ángel Martin - 12-06-2020, 07:48 AM
RE: Forth-41 - Ángel Martin - 12-08-2020, 07:20 AM
RE: Forth-41 - smp - 12-08-2020, 01:55 PM
RE: Forth-41 - Ángel Martin - 12-08-2020, 03:48 PM
RE: Forth-41 - smp - 12-08-2020, 09:31 PM
RE: Forth-41 - ThomasF - 12-08-2020, 01:04 PM
RE: Forth-41 - Ángel Martin - 12-14-2020, 05:56 PM
RE: Forth-41 - rprosperi - 12-14-2020, 06:27 PM
RE: Forth-41 - Massimo Gnerucci - 12-14-2020, 06:44 PM
RE: Forth-41 - Ángel Martin - 12-15-2020, 01:32 PM
RE: Forth-41 - jjohnson873 - 12-27-2020, 06:19 PM
RE: Forth-41 - smp - 12-27-2020, 08:25 PM
RE: Forth-41 - jjohnson873 - 12-28-2020, 02:09 AM
RE: Forth-41 - Ángel Martin - 12-28-2020, 06:48 AM
RE: Forth-41 - CY-CL - 12-27-2020, 07:20 PM
RE: Forth-41 - Gene - 12-27-2020, 07:46 PM
RE: Forth-41 - dmh - 09-07-2022, 11:13 AM
RE: Forth-41 - lmamakos - 09-07-2022, 03:31 PM
RE: Forth-41 - rprosperi - 09-07-2022, 09:03 PM
RE: Forth-41 - Garth Wilson - 09-07-2022, 09:51 PM
RE: Forth-41 - dmh - 09-08-2022, 01:36 AM
RE: Forth-41 - dmh - 09-08-2022, 11:30 AM
RE: Forth-41 - rprosperi - 09-09-2022, 04:43 AM
RE: Forth-41 - Garth Wilson - 09-09-2022, 06:25 AM
RE: Forth-41 - dmh - 09-09-2022, 11:14 AM
RE: Forth-41 - Joe Horn - 09-09-2022, 11:29 AM
RE: Forth-41 - dmh - 10-13-2022 10:06 AM
RE: Forth-41 - Ángel Martin - 10-19-2022, 05:27 PM
RE: Forth-41 - rprosperi - 10-19-2022, 06:01 PM
RE: Forth-41 - dmh - 10-20-2022, 01:18 AM
RE: Forth-41 - dmh - 10-18-2022, 02:38 PM
RE: Forth-41 - Ángel Martin - 10-19-2022, 08:43 AM
RE: Forth-41 - Ángel Martin - 10-20-2022, 05:44 AM
RE: Forth-41 - mfleming - 10-21-2022, 05:50 PM
RE: Forth-41 - Massimo Gnerucci - 10-21-2022, 08:43 PM
RE: Forth-41 - Ángel Martin - 10-23-2022, 02:30 AM
RE: Forth-41 - coniglius - 02-11-2023, 12:52 PM
RE: Forth-41 - dmh - 02-12-2023, 03:40 AM
RE: Forth-41 - coniglius - 02-12-2023, 09:16 AM
RE: Forth-41 - coniglius - 02-12-2023, 09:00 PM
RE: Forth-41 - dmh - 02-24-2023, 01:07 AM
RE: Forth-41 - coniglius - 02-24-2023, 12:06 PM
RE: Forth-41 - dmh - 02-24-2023, 12:15 PM



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