home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.archives.msdos.announce
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!mailgzrz.TU-Berlin.DE!math.fu-berlin.de!nigel.msen.com!sdd.hp.com!cs.utexas.edu!swrinde!gatech!usenet.ins.cwru.edu!wsu-cs!vela!tacom-emh1.army.mil!msdos-ann-request
- From: Janos_Haide@Novell.COM (Janos Haide)
- Subject: SWAP300.ZIP - C routines allow swap of app to disk, XMS, EMS
- Message-ID: <9301241533.kp7058@tacom-emh1.army.mil>
- Followup-To: comp.archives.msdos.d
- Originator: w8sdz@tacom-emh1.army.mil
- Sender: msdos-ann-request@tacom-emh1.army.mil
- Organization: The SIMTEL20 Archives
- Date: Sun, 24 Jan 1993 15:33:18 GMT
- Approved: w8sdz@tacom-emh1.army.mil
- Lines: 64
-
- [Note: this is a repost to correct the subdirectory info]
-
- I have uploaded to WSMR-SIMTEL20.Army.Mil:
-
- pd1:<msdos.c>
- SWAP300.ZIP C routines allow swap of app to disk, XMS, EMS
-
- Excerpt from the docs:
-
- swap()
- Version 3.00
- October 4, 1990
- Copyright (C) 1990
- by Marty Del Vecchio
-
-
- This package (swap) includes an MS-DOS assembly-language routine that
- can be called from a C program. It will swap most of the current
- program to extended memory (supplied by an XMS driver, such as HIMEM.SYS),
- expanded memory (EMS version 4.0), or disk, thus freeing up more memory
- for DOS. It will then execute another program in its place, and re-load
- the original program to its original state. This allows large DOS
- programs to execute other programs without the original program taking
- up DOS memory.
-
- WHATS.NEW:
- This document lists the changes in swap() in each version.
-
-
- Revision Date Comments
- ---------------------------------------------------------------------------
- 1.00 4/1/90 Initial revision. Supported swapping to expanded memory
- or disk. Supported Small and Medium memory models.
-
- 2.00 9/6/90 Added support for swapping to XMS extended memory.
- Added support for Compact, Large, and Huge memory
- models. Made .ASM source file configurable.
-
- 2.01 9/7/90 It's always something! SWAPTEST.LNK was missing from
- the release .ZIP file. SWAP.DOC did not have page
- numbers in the table of contents.
-
- 2.10 9/11/90 Added code to parse the command line into the default
- FCBs (thanks to David E. Jenkins). Changed /D[model]
- definitions to allow assembly with Turbo Assembler.
-
- 2.11 9/28/90 Fixed problem in SWAP.ASM (variable called cmd_pad).
- This prevented execution of COMMAND.COM with arguments,
- as the pad byte (0) is interpreted by COMMAND.COM as the
- end of the command line. Ooops! Also, added
- information about using Microsoft C 6.00.
-
- 3.00 10/4/90 Added full support for Microsoft C 6.00 large code
- memory models (fragmentation support). Added complete
- information about compiling, assembling, and linking in
- all supported compiler versions and memory models.
- Fixed error in disk restore routine--it wasn't deleting
- the swap file after it was done. Swap() no longer
- supports EMS version 3.2--EMS 4.0 and above is required.
-
- Janos
- - -
- Janos Haide
- jhaide@novell.com
-