Download TMQ Vol IV.ii - tim
Transcript
Volume IV.li THE MISOSYS QUARTERLY - @get/@put would be valid within a filter, can't think of a good reason why not! What I'd forgotten was that type-ahead doesn't PROCESS a keystroke, but simply stores it for the next keyboard call. I was worrying about the filter's disk i/o possibly interfering with the external program's disk i/o. I realize now that's not likely to happen. Once again, muddy thinking; must have been a full moon! 4) Yeah, but wouldn't they be finished with the sysbuf by the time a keyboard call came around? Could you expand on this a bit? (Still hoping to steal a 256-byte buffer from low mem somewhere - actually 1920 bytes for a video buffer would be even better; dream ON! Fm Adam Rubin: Thanks for the pointer, Shane. I found the article you were referring to in the June, July, and August '85 issues of "80 Micro". What Hardin discovered there was that if you invoke any SVC that requires a DOS overlay, the overlay currently in the overlay region gets clobbered (not very surprising). There are easier ways to restore the old overlay than the way he used, but the problem does have to be taken care of one way or another. Thanks for pointing it Out! Fm Adam Rubin: Bob, I don't see any reason why @GET/@PTJT can't be invoked inside of a filter, either. Just about every filter does an @CHNIO somewhere, and there certainly could be a ifie at the end of the device chain. If they can do it, you probably can too. On to point #4... here's why it won't work. Let's suppose you DO use SYSBUF for your I/O. Now, I sit down at my computer, install your filter, and start running a program. I run the program for a while, and while that's going on your filter does (let's say) 18 @PUTs. So, SYSBUF will contain 18 bytes of data to be saved, and has room for 238 more. Suddenly, my program decides to save something to disk. 11mm... looks like we'll need to allocate some space for that, so we use SYSBUIF for a moment. When the program is done saving whatever-it-is to DOS Subjects Winter 1989/90 disk, yes, it's done using SYSBUF, but what does SYSBUP contain? The GAT from the disk the ifie was saved onto. Where are the 18 bytes your program wanted to save to disk? Clobbered. The case of @GET is similar. Your filter's first @GET will read the first sector of your file into SYSBUF. If my program reads or writes to MemDisk and its buffer is >7FFHI, SYSBUF gets used for a moment. Whatwill the nextcall to @GET bring back? No, not your file, but something from the MemDisk sector that was there last. Is that any clearer? Basically, I don't think there's any free memory below 240011, except for the low memory driver region. Incidentally, when were you planning to do the @OPEN/@INIT and @CLOSE for the file your filter is reading/writing? As Shane pointed out, if you do those inside a filter, you have to restore the DOS overlay that was there before your operation. That's pretty straightforward, most of the time anyway. Fm Shane Dawalt: I thought I Hardin knew about the overlay problem. I recall he did attempt to load in the "last overlay" by using that special overlay code at IY1 (when P1 is pointing to the FLAGS base). Oh well. Fm Bob Haynes: Roy, I seem to have found both a problem and a solution; let's see what you think. The DOCONFIG program is wonderfully useful, but I found it has a small quirk when used with PROWAM. I know, you'll say PROWAM can't be SYSGENed or -25- Volume W.li DOCONFIGed, but I'm not trying to do that; in fact, I'm trying to do the opposite! Sounds of Source pages being flipped... Apparently DOCONIFIG does not save BUR$ to its conflg ifie (actually a limitation of the sysgen module, I realize), so if PROWAM is installed, used, and later discarded by invoking a /CFG module, BUR$ does not get reset. After two such occurrences (more with> 128K), BUR$ is "full", PROWAM can no longerfindan available bank, and re-boot is required to install PRO WAM. I considered patching DOCONFIG, but instead decided to 'fix" SYSGEN by adding BUR$ to the save table. I really can't think of a reason BUR$ shouldn't be sysgened, can you? BAR$ should not, since that might vary depending on whether an XLR8er board is enabled or not. Anyway, here's the patch: patch LS-DOS 6.3 SYS8/SYS to save BR$ on ayagen DOC,38=01 00 00 02 FOC,38=00 00 00 00 sop Your comments appreciated... Fm MISOSYS, Inc: Since the configuration portion of the DOS cannot deal with "configuring" memory beyond 64K, there is no justification for it "messing" with either BAR$ or BUR$. What you do to your own implementation is your own personal choice. Incidentally, DOCONFIG does absolutely no saving of any configuration data on its own: it simply supervises the controlled invocation of the DOS' library which handles the creation of the CONFIG/SYS file; thus, you were correct in your thinking to NOT patch DOCONFIG. By the way, you could have used the BANKER program from TMQ 1.11 (Fall 1986) to free up those "unused: banks DOS Subjects