Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Blinker 5.10 Online Reference - <b> dual mode programs</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Dual mode programs
------------------------------------------------------------------------------
 The ability to create dual mode programs simply by adding a single command
 to the link script file is a major breakthrough. Dual mode programs detect
 at startup whether there are enough system resources to run in protected
 mode. If there are insufficent resources then the same program will run
 as a normal dynamically overlaid program.

 The .EXE still only consists of one program capable of operating in either
 mode, it is not two separate copies joined together in some way. There is
 negligible increase in .EXE size over a single mode program, and a similarly
 negligible overhead in execution speed, since the whole program is loaded
 into memory when running in protected mode.

 For this dual mode to work and be effective, all code must be written to
 execute in both real and protected mode. High level languages, such as
 CA-Clipper, require no code changes whatsoever to run in protected mode,
 and changes for C, PASCAL and FORTRAN are the exception rather than the
 rule. This requirement should only affect high level C and ASM programmers.
 In the worst case the code should be able to test for the processor mode
 each time it is executed and then jump to the appropriate code.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson