home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
USCX
/
GETROM.ZIP
/
ROMSAVAT.C
< prev
next >
Wrap
Text File
|
1985-12-31
|
488b
|
33 lines
/* Romsavat writes the AT rom to a file called
atrom. Must be compliled with the large model
option.
*/
#include <stdio.h>
#include <stdlib.h>
main()
{
FILE *stream;
unsigned int c;
long x;
char *d;
/* starting address of at rom in seg:offset fmt */
d = 0xf0000000;
/* size of at rom */
x = 0x10000;
/* open the file in binary mode! */
stream = fopen("atrom","wb");
while (x > 0)
{
c = *d;
putc(c,stream);
*d++;
x--;
}
fclose(stream);
}