Welcome, Guest. Please login or register.


Author Topic: FORTH (Read 67023 times)

Offline BruceTanner

  • EP lover
  • *
  • Posts: 609
  • Country: gb
Re: FORTH
« Reply #60 on: 2021.July.15. 22:47:44 »
I second that book recommendation - it was *the* forth book back in the mid-1980s when IS-FORTH was written. It looks a bit cartoon-y at first glance but all the information is there in a readable format.

Offline BruceTanner

  • EP lover
  • *
  • Posts: 609
  • Country: gb
Re: FORTH
« Reply #61 on: 2021.July.15. 22:49:41 »
But perhaps less useful to some of my Hungarian friends. :(

Offline ExcaliburGER

  • Newbie
  • Posts: 13
  • Country: de
Re: FORTH
« Reply #62 on: 2022.October.16. 16:49:19 »
I have implemented Conway's Game of life with a nice example found at rosettacode.org. In lack of some commands in IS-FORTH I looked for ways around, most of a times the chance to find another way is good in Forth. VALUE / TO is replaced by a normal variable with @ and !. The other point is the at-xy, which is only AT in IS. And last the S" StringValue" is replaced by " StringValue" COUNT, which also leaves the count and the address on the stack.

It's loadable with the known procedure:
BUFFERS ON " A:GOL.4TH" NAME
LOAD-BUFFERS

After that the first 6 blocks have to be loaded (1 LOAD CR, 2 LOAD CR...6 LOAD CR). After all six pages are loaded the examples like "CLEAR 0 GLIDER SHOW CR" are working. But don't count rocket speed in execution ;)

I wanted to use "->" to load the next block automatically, as described in the manual of IS-Forth. But it does not work -> "not found" :(
Today are the good old days that we will long for in 10 years

Offline gflorez

  • EP addict
  • *
  • Posts: 3615
  • Country: es
    • Támogató Támogató
Re: FORTH
« Reply #63 on: 2022.October.17. 16:08:23 »
Hello Hexcaliburger.

I have tried to load the file, but Forth doesn't find it. What is your configuration?

[ Guests cannot view attachments ]

Offline Lacika

  • EP addict
  • *
  • Posts: 3218
  • Country: hu
    • http://www.ep128.hu
Re: FORTH
« Reply #64 on: 2022.October.17. 16:44:23 »
Hello Hexcaliburger.

I have tried to load the file, but Forth doesn't find it. What is your configuration?


BUFFERS ON " A:GOL.4TH" NAME
BUFFERS ON[space]"[space]A:GOL.4TH" NAME

Offline ExcaliburGER

  • Newbie
  • Posts: 13
  • Country: de
Re: FORTH
« Reply #65 on: 2022.October.17. 17:36:16 »
Yes, the space after the first " is important to seperate the String for FORTH. After the LOAD-BUFFERS you can look inside the sources with
BlkNo. (i.e. 1) EDIT ENTER - Esc ends the editor
Mostly it equals the code from rosettacode.org.
« Last Edit: 2022.October.17. 17:42:02 by ExcaliburGER »
Today are the good old days that we will long for in 10 years