Jump to content
IGNORED

How to file stats from assembly?


Recommended Posts

I'm trying to use the NanoPEB DSR's STATUS command (op-code 9) to get file information.  The status bits seem to look good, except for the FIXED/VARIABLE record-length bit.  It always seems to be set, so my program thinks all files are VARIABLE record-length.  Anyone else noticed similar behavior?  Do other DSRs do the same thing?

 

K-R.

 

Link to comment
Share on other sites

That's a bug from the original TI DSR. :) Display/Fixed always comes up this way. According to my notes:

 

// TODO: emit a warning when reading a Display/Fixed file - the TI Disk Controller will
// report it as Display/Variable due to a bug at >5894 which uses JGT to avoid inserting
// the variable bit, but DF files have a value of 0, which is not greater than.

 

  • Like 1
Link to comment
Share on other sites

I've seen or written a DSR that tries to do the right thing.  

 

I also seem to recall when using the status operation, you need to consult the data-file/program bit before looking at the record type bits. 

 

The LVL2 IO operations DIRECT INPUT, will provide the same data in block 0... it is reliable on everything I've seen so far.

 

 

  • Like 1
Link to comment
Share on other sites

1 hour ago, jedimatt42 said:

I've seen or written a DSR that tries to do the right thing.  

 

I also seem to recall when using the status operation, you need to consult the data-file/program bit before looking at the record type bits. 

 

The LVL2 IO operations DIRECT INPUT, will provide the same data in block 0... it is reliable on everything I've seen so far.

 

Is that the "open directory" call, OPENing a file called 'DSKn." that I found in Nouspikel's Web site?  Looking at Fred Kaal's site, I guess not.  It's going to be more complicated... Sigh.

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