Post Reply 
FORTH for the SHARP PC-E500 (S)
09-30-2021, 09:42 PM
Post: #17
RE: FORTH for the SHARP PC-E500 (S)
(09-29-2021 10:27 PM)robve Wrote:  I wonder if the following simple optimization reduces the transfer time by reading 8 bytes at once:
30 FOR J=A TO A+N-1 STEP 8: INPUT#1,B,C,D,E,F,G,H,I: POKE J,B,C,D,E,F,G,H,I: NEXT J

If the input file is not a multiple of 8 bytes, then you can save it with padding zeros to make it a multiple of 8.

Good idea! This reduces the transfer time by about 20% in my test. So it will not make a huge difference, at least for me. Smile

Quote:I believe the E500(S) moves the RAM disk to lower memory when allocating space, but I could be wrong. Did memory allocation fail when you have an E: drive? Perhaps the E: drive is too big? Allocating space fails if the E: drive and BASIC Programs do not leave enough space for Forth500.

Nothing failed for me. I just asked the question out of curiosity, because I thought you knew the answer. I will not investigate this question as long as nothing crashes. Wink

Jean-Charles
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) - dmh - 10-02-2022, 02:29 PM
RE: FORTH for the SHARP PC-E500 (S) - dmh - 10-04-2022, 12:46 PM
RE: FORTH for the SHARP PC-E500 (S) - dmh - 10-04-2022, 10:55 PM
RE: FORTH for the SHARP PC-E500 (S) - Helix - 09-30-2021 09:42 PM



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