Jump to content
IGNORED

File question


Vorticon

Recommended Posts

Yea minimum size of 3 sectors can be saved in RXB in 254 format vs XB format.

Example: SAVE DSK1.TEST,IV254

(This can be used in Console only in RXB.)

 

Maximum size of XB program format is Line number table plus program size minus 64 bytes for stack, plus 256 for line buffer.

This would use all of the VDP memory available.

Any program in memory larger must be in upper 24K so will be saved in IV254 format.

No matter if you have a 32K or not does not matter as when 32K exists all XB programs are moved to upper 24K automatically.

Still all XB programs are using VDP to load or save.

 

  • Like 1
Link to comment
Share on other sites

4 hours ago, apersson850 said:

If you want to use all the space in the sectors you can go for fixed 128 file. Two such records fill one sector precisely. You can't do one 256 byte record, since record sizes are one byte long only.

 

Precisely how TurboForth and fbForth do it for blocks files.

 

...lee

  • Like 3
Link to comment
Share on other sites

2 hours ago, apersson850 said:

If you want to use all the space in the sectors you can go for fixed 128 file. Two such records fill one sector precisely. You can't do one 256 byte record, since record sizes are one byte long only.

I think PROGRAM FORMAT is best as it uses every byte by 256 at a time each sector as there is no byte count per sector.

 

  • Like 1
Link to comment
Share on other sites

2 hours ago, RXB said:

I think PROGRAM FORMAT is best as it uses every byte by 256 at a time each sector as there is no byte count per sector.

It's actually the same with Fixed128, that's also why it's used to read PC files. The only difference is whether you get access to discrete parts or only the whole file (using the default I/O calls anyway).

  • Like 3
Link to comment
Share on other sites

Yes, and with the memory image format (how's that for something different than PROGRAM?), the standard DSR limits the file's length to what can fit in the VDP buffer.

The p-system uses a fixed 128 dummy file to mark the whole disk as used. But it doesn't use that file itself, it does a direct sector read/write access instead.

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