Jump to content
IGNORED

New Compiler Loader


senior_falcon

Recommended Posts

gallery_34177_1071_35078.gif

I have been reworking the compiler loader to make it faster and easier to use. The video above shows the results. The first part shows the old compiler loader which takes about 40 seconds to load a compiled version of Aperture. Once loaded I save it in EA5 format and then RUN the program. The second part shows the new version, which you can see is way faster. Once the program is loaded you are presented with three options. The first is to save in EA5 format. Press Enter to save under the suggested file name, or edit the name, or press F3 if you don't want to save as EA5. The second option is to save in XB format and as before you can press Enter, or edit the file name or press F3 if you don't want to save in XB format. The third option is to run the program. Press Enter to run or F3 if you don't want to run the program. In the video I save the program as EA5, skip saving as XB and then RUN the program.

 

The major insight I had in speeding the loader up is to use the EA utilities loaded by TI BASIC with CALL INIT. There is an assembly language loader used by CALL LOAD, but it can also be BLWP'd to within an assembly program which is how I access it. CLOADER2 will load the EA utilities when needed and then reload the XB utilities when done using the fast loader.

 

The second trick is a little routine that copies the last line of the XB program out of high memory and into low memory and resets the pointer to the new location. The last line is where the CALL LINK is done that uses the assembly loader. This completely overwrites the XB program and line number table but it doesn't matter because after the program is loaded the XB interpreter comes to END in the XB program and happily returns to the XB command line with no error.

 

The third trick is to set up an interrupt driven routine that prints a suggested response on the screen and sets the pointers for the line editor to point to the new beginning position(at >8320), end position (at >832A) and cursor position (at >8361).

When you press Enter or F3 the pointers at >8320 and >832A become the same because there now is a blank line and the interrupt routine knows it is time to provide the next suggested response. Press Enter 3 times and you have saved in EA5, in XB format, and run the program.

 

The new loader is attached as CLOADER2. You can copy it to the compiler disk and change line 15 of LOAD to use CLOADER2. Or you can change the filename to CLOADER, but you might want to save the original CLOADER in case there are bugs in the new one.

 

(Forgot to mention that I am using different file extensions. -X indicates an XB format file and -E is EA5 format)

 

CLOADER2.zip

Edited by senior_falcon
  • Like 10
Link to comment
Share on other sites

Thanks again Harry for making the process easier and faster! This is a BIG win for BASIC programmers looking for a way to speed up their code.

 

Glad to see you've cleared up the file extensions as well! No more "-C" extension confusion with large files and XB files! I was going to ask about this but you fixed it! :)))

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...