Thanks to you all I got this to work!
I have far to go, but this gets me off to a great start.
As I mentioned, Taliforth 2 is what I use and will keep using, as it's much more modern like gforth, however ones study of forth I think can be improved through working with, and if nothing else for the nostalgic value of working with Fig.
I want to work on a way to make it easy for folks (If I accomplish it, I would think it proper to run by scotws and SamCoVT of course), but to marry Fig to their disk storage solutions, much like Taliforth2's ability to create ones own assembly then map the reads and writes through the vectors of ' myblockreader BLOCK-READ-VECTOR ! and ' myblockwriter BLOCK-WRITE-VECTOR !
Below is the code for the ram disk presently, there may be issues but it appears to work at first testing:
Code:
L3060: .BYTE $83,"R/",$D7
.WORD L3050 ; link to -BCD
RSLW: .WORD DOCOL ; : R/W
.WORD TOR ; >R ( save boolean )
.WORD BBUF ; B/BUF
.WORD STAR ; *
.WORD LIT ; LITERAL
.WORD $4000 ; LO
.WORD PLUS ; +
.WORD DUP ; DUP
.WORD LIT
.WORD $6800 ; HI
.WORD GREAT ; >
.WORD CLIT ; SINGLE BYTE LITERAL
.BYTE $06 ; #$06 ( range check )
.WORD QERR ; ?ERROR
.WORD RFROM ; R>
.WORD ZBRAN ; ZERO BRANCH
.WORD 4 ; OFFSET TO CONT
.WORD SWAP ; SWAP
CONT: .WORD BBUF ; BBUF
.WORD CMOVE ; CMOVE
.WORD SEMIS ; ;
For a quick test, I entered the bytes for screen #1 to contain the following. I did have to list another screen, 0 in my case, then go back and list screen 1 for this to show, but:
: Hello ." Hello World" ;
HEX
4000 AF0 BLANKS
Code:
3A 4400 c!
20 4401 c!
48 4402 c!
65 4403 c!
6C 4404 c!
6C 4405 c!
6F 4406 c!
20 4407 c!
2E 4408 c!
22 4409 c!
20 440A c!
48 440B c!
65 440C c!
6C 440D c!
6C 440E c!
6F 440F c!
20 4410 C!
57 4411 C!
6F 4412 C!
72 4413 C!
6C 4414 C!
64 4415 C!
22 4416 C!
20 4417 C!
3B 4418 C!
20 4419 C!
DECIMAL
* Listed screen 0, then screen 1 again*
Listing Screen #1
1 LIST
SCR # 1
0 : Hello ." Hello World" ;
1
...
And
FLUSH OK * Probably not neccessary
1 LOAD OK
HELLO Hello WorldOK
Fellows, thank you all so much. I shall continue to see if I can come up with something nice for others.
Appreciate you all!
_________________
Shaking out the dirty bits!
https://github.com/DonaldMoran