tinkering with #durexforth on the
#Commodore64, doing some #retrocoding
I have compiled Durexforth from source, using the "master" branch. The main reason for this being that - unlike the official 5.0.0 release - the most recent code allows the S" word to be used in interactive mode.
Even more interesting is the fact that there already is a COUNT word but not its counterpart PLACE - so I provided that myself. And that eventually enabled me to provide a new, custom word: S, (which you may know from gforth)
S, will add a counted string to the dictionary, starting at HERE
Which eventually gives us a the ability to create nice lists of strings. π‘
Now, why do all of this (despite having fun)? π€
Well, remember when I put together a two-word parser for a simple #textadventure #game in DX-Forth on CP/M? π
(https://oldbytes.space/@Wintermute_BBS/115996588963884170)
With my additions in place that code now also runs on Durexforth without any changes (despite ASCII to PETSCII conversion) .... yay!
#forth
#programming