Jump to content
IGNORED

Disk access for Compiler256


senior_falcon

Recommended Posts

I have been looking at the possibility of implementing disk access for the XB compiler. I now have the compiler handling the open, close, input and linput, and print to some extent, but there still is a ways to go before that is fully implemented. That's the easy part...The hard part is writing the runtime routines for disk access, and I have neither time nor interest in doing that. If someone is interested in tackling this I can provide information on how to interface with the compiled code - such things as how to pass numbers, strings, commonly used subroutines, workspaces, etc.

  • Like 2
Link to comment
Share on other sites

The MG GPLLNK/DSRLNK takes 174 bytes of ALC plus DSRLNK workspace of 32 bytes. I presume we're talking about maintaining the XB/TIB linked list of PABs for open files in graphics mode. It would be dicier if we have to also do it for bitmap mode because the space for PABs is limited in that mode.

 

...lee

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...

Looks like the programming is pretty much worked out. Limited to Display Variable files, any length you want. 3 files can be open at a time if needed. EOF and error handling are worked out so they work like in XB. I need to come up with a rigorous test to be sure:

1 - the files created by a compiled program are compatible with those created by an XB program.

2 - files created by XB can be read by a compiled program.

3 - the error handling works as expected.

4 - documentation needs to be updated

Been very busy but hope to get to this soon.

  • Like 5
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...