Post Reply 
FORTH for the SHARP PC-E500 (S)
11-07-2021, 08:19 PM
Post: #51
RE: FORTH for the SHARP PC-E500 (S)
(11-07-2021 05:44 PM)Klaus Overhage Wrote:  UULOAD.BAS from the same archive seems to be an implementation in BASIC of the way you suggested: It reads in a UUE file via the COM interface, checks whether the first 16 bytes are as requested by LOADM and writes the bytes directly into the upper RAM. I tried it with FORTH500.UUE: It only worked 10% after 4 minutes, so I canceled it.

BASIC decoding is too slow to keep pace with the serial interface.

The UUDECODE.ASM implementation isn't complicated and the code is actually a bit convoluted. It has a lot of unnecessary extras that can be removed. Since we only want to read the uu file from COM:, the code that parses the argument passed to the decoder as a CALL argument can be removed. The file to create and write is not needed when saving the decoded data directly to memory. The display messaging, error reporting and uu file header parsing can be removed to significantly reduce the code size to a bare minimum. I played a bit with this to "trim the fat" by removing all non-essential parts and got the machine code down to 453 bytes. To bootload this code via BASIC with POKEs in hex will be more than 1K, a tad too large if 950 bytes of BASIC are available when space is allocated for Forth500 unless we move Forth500 up in memory by one or more page sizes (multiples of 256 bytes). With only 400 bytes or so remaining, rewriting UUDECODE.ASM appears an option, BUT... I cannot try it out to test it. Unfortunately, my CE-134T doesn't work with low RS232 USB dongle voltage levels. I'm glad to have received suggestions to DIY a serial interface, but I'm concerned with overvoltage levels or ESD damaging the E500.

- 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 - 11-07-2021 08:19 PM

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