> While debugging a problem with Jemm + our EBDA mover under > FreeDOS, I found the following /sysinit/ quirks (Kernel.sys 2040) both > related to the "switches = /E" directive.
> - " Switches = /E " without a size is silently *ignored*. In MSDOS, it works > as designed, i.e. the whole XBDA is translated down to an appropriately > sized "subsegment".. > - "SWITCHES =/E:bytes" *does* work as designed (not a bug!) I'm no expert in XBDA moving, but http://support.microsoft.com/kb/135481/EN-US /E[:n] Used without the :n parameter, indicates that Io.sys should suppress the automatic relocation of EBIOS. (Automatic relocation of EBIOS increases the conventional memory available to MS-DOS-based programs.) Supressing automatic relocation results in less conventional memory available to MS-DOS-based programs. Use the /E switch with the n parameter to relocate N bytes of EBIOS to low memory, where n is the number of bytes to be relocated. The minimum value for n is 48 and the maximum value is 1024. The number specified is always rounded up to the next multiple of 16. it seems to me the kernel behaves as it should. > - However, in debug mode, "?SWITCHES = ..." is executed *always* > whether the operator answers Y or N when prompted ! This is a bug, > maybe yet some directoves other than Switches are affected too, to be > checked. ?DEVICE =..." is OK in this respect . the kernel code reads >>> if (nPass == 0) /* pass 0 always executed (rem Menu prompt switches) */ { pEntry->func(pLine); continue; } else { if (SkipLine(pLineStart)) /* F5/F8 processing */ continue; } note in the >>> line that 'switches' should be always executed I don't know know why this design decision was made, but this is one example of 'this not a bug, it's a feature' ;) Tom ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
