Kchula-Rrit Posted May 26, 2020 Share Posted May 26, 2020 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. Quote Link to comment Share on other sites More sharing options...
Tursi Posted May 26, 2020 Share Posted May 26, 2020 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. 1 Quote Link to comment Share on other sites More sharing options...
+jedimatt42 Posted May 26, 2020 Share Posted May 26, 2020 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. 1 Quote Link to comment Share on other sites More sharing options...
Kchula-Rrit Posted May 26, 2020 Author Share Posted May 26, 2020 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. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.