/****************************************** Use of virtual memory (c) 1995 by Topical Software Demo programm of DOS-Extender Swallow ******************************************/ #include #include #include #include "swallow.h" void main() { highvideo(); cprintf("Use even hard disk memory with Swallow!\r\n\r\n"); lowvideo(); cprintf("Without any tricks you have already %li Bytes of free memory!\r\n", farcoreleft()); InitSwapFile(-1, 0); // -1 = use directory "TEMP", // 0 = leave half disk space free cprintf("By using a swap file you get %li Bytes!\r\n", farcoreleft()); UseBaseMem(); // remember: call it _after_ InitSwapFile cprintf("And if we use DOS memory too, you get %li free Bytes!\r\n", farcoreleft()); }