Post Reply 
FORTH for the SHARP PC-E500 (S)
09-28-2021, 09:03 PM (This post was last modified: 09-28-2021 09:05 PM by robve.)
Post: #14
RE: FORTH for the SHARP PC-E500 (S)
(09-28-2021 03:28 PM)Helix Wrote:  Now Forth500 is installed on my E500S Smile
I've used the DOS program attached to this post. It's very simple.

Great! It takes a bit longer to transfer over serial than I had expected from the baud rate. By comparison, the cassette interface transfer takes about 90 seconds. But it's not always successful and requires a second or even a third attempt. Fortunately, the complete floating point implementation does not appear to increase the Forth500 binary a lot, just 1.5K~2K max, thanks to the E500 system calls and the efficient CPU architecture (the SC62015 is definitely one of my favorites). So loading will not substantially increase and there is enough space left for Forth programs. I will try to keep the binary small, finding ways to shrink it further if possible. Every byte counts. I can't make much progress on this addition until I get back in three weeks.

You already know this, but I'll state this again: please note that RAM must be reserved first with the required POKEs+CALL, before running the bootloader program. Otherwise Forth500 will immediately crash.

By the way, it should be possible to send and receive ASCII data from within Forth500 over serial. Just open the COM: device with OPEN-FILE, store the fileid in a variable, then use the Forth IO words and CLOSE-FILE. It should also be possible to load source code with INCLUDE COM: when executed in Forth500. However, the SIO settings cannot be specified within Forth500. I suspect that the most recent (or default?) SIO settings will be in effect (the settings specified in BASIC). If not, we should take a look at this by making the appropriate system calls.

- Rob

"I count on old friends" -- HP 71B,Prime|Ti VOY200,Nspire CXII CAS|Casio fx-CG50...|Sharp PC-G850,E500,2500,1500,14xx,13xx,12xx...
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
FORTH for the SHARP PC-E500 (S) - Helix - 09-06-2021, 11:41 PM
RE: FORTH for the SHARP PC-E500 (S) - robve - 09-28-2021 09:03 PM

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