Hi All,
I am a big fan of and have Tali running on my sbc fine.
However, FIGFORTH has always interested me. I've brought a couple different venison's up on my SBC, worked through tutorials with it and so on, but could never get screen listings to work. I had always assumed it had something to do with my setup, but I see the same issue exist in the simulator, thus I must be missing something.
As in the screenshot, I would expect a 0 list to list 16 lines but it crashes at line 2. I know this crash is happening when in routine L3030 / DDISC and that I have no disc attached, but I have thought I could use a RAM disk as described in the 1979 installation manual.
The section of the installation manual "fig-FORTH_Manuals_May79" I refer to, page 4 reads as:
RAM DISC SIMULATION
If disc is not available, a simulation of
BLOCK and BUFFER may be made in RAM. The
following definitions setup high memory as
mass storage. Referenced 'screens' are then
brought to the 'disc buffer' area. This is
a good method to test the start-up program
even if disc may be available.
HEX
4000 CONSTANT LO ( START OF BUFFER AREA )
6800 CONSTANT HI ( 10 SCREEN EQUIVALENT )
: R/W >R ( save boolean )
B/BUF * LO + DUP
HI > 6 ?ERROR ( range check )
R> IF ( read ) SWAP ENDIF
B/BUF CMOVE ;
Insert the code field address of R/W into
BLOCK and BUFFER and proceed as if testing
disc. R/W simulates screens 0 thru 9 when
B/BUF is 128, n the memory area $4000 thru
$6BFF.
An online version of the manual is at
https://github.com/BillRagsdale/fig-FORTH/blob/main/fig-FORTH_Installation_Manual_May79%20good.pdfI have tried this several ways, but basically, I enter the above R/W definition and get an OK, then I do the following "which is probably wrong":
' BLOCK R/W !
' BUFFER R/W !
I will then try list and it will show a line or two and crash. I have also tried not doing anything but starting figforth and 0 list, as well as only defining hi and lo.
If anyone can give me a new idea I would appreciate it. I do know if I connected up my SD card routines it would likely work much better, but I wanted to get thru playing with a ram disk first to make sure I understood what to do with read sd card access.
I do have Tali working well with my sd card solution, but FIGFORTH seems a little less straight forward to setup for me.
Thanks,
Don