I'm attaching a file that has a "simple" TSR with the problem (TESTFAIL.COM), as well as one that doesn't (TESTPASS.COM). I'm also including the source code (TEST.A36, in A386 format), as well as the KERNEL.SYS & CONFIG.SYS I used to test with. The only difference between TESTFAIL & TESTPASS is the size of the executable file itself. In the source code, I change ProgStackSize (line 1364 in TEST.A36) from 1024 for TESTFAIL to (1024-16) for TESTPASS. IOW, I simply decrease the executable's size by 1 paragraph and it starts working.
TESTPASS & TESTFAIL both work from the FreeDOS command-line, and they also work from MS-DOS 6.20 CONFIG.SYS and command-line. But only TESTPASS works from FreeDOS CONFIG.SYS. Changing the executable size up and down (by manipulating ProgStackSize in increments of 16 bytes) will cause different kinds of errors to occur. What the TSR does is simply intercept INT 8, and "toggles" the character at row 2, column 80 on the screen. There is still quite a bit of "extra" (uncalled) code in the program, but I stopped changing things when I got to a point where I could make it start and stop working with a single, simple change. Also, the program currently uses a TSR Exit (INT 21.31), even though it doesn't actually need to. I was just experimenting with INT 21.31 vs. INT 21.4C to see if it made any difference. So, as it is now, it leaves a "real" TSR segment in memory (one that intercepts INT 08 & INT 2D), as well as a small segment near the top of conventional memory that doesn't actually do anything. I figured if the TSR exit worked but a regular exit didn't (for whatever reason), I could simply trap INT 28 or INT 21 with the TSR and release the unnecessary segment at a later point in time. It's very possible that there's a problem with my code and there's nothing wrong with the FreeDOS kernel, so any help at all would be appreciated. http://old.nabble.com/file/p30101181/TEST.ZIP TEST.ZIP ___ Bret -- View this message in context: http://old.nabble.com/Problem-w--CONFIG.SYS-INSTALL-tp30076203p30101181.html Sent from the FreeDOS - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user