I wrote a little C program to fetch the ROM BIOS of a machine.
I wrote it on my Compaq Portable III with TC 2.01.  The source
is included, you can get the binary and sample Compaq ROM from

ftp.apsoft.com:/pub/users/perry/tc/

I just writes out 64k at 0xF000:0 to 'bios.rom'.

--Perry

-- 
Perry Harrington       Linux rules all OSes.    APSoft      ()
email: [EMAIL PROTECTED]                         Think Blue. /\
-------------------------------------------------------------------

#include <stdio.h>
#include <dos.h>

void main(void)
{

        char    far *bios_data;
        FILE *out;

        bios_data = MK_FP(0xf000, 0x0);

        out = fopen("bios.rom","wb");

        if (out == NULL) {
                printf ("Failed to open bios.rom\n");
                exit(1);
        }

        fwrite(bios_data, 0xFFFF, 1L, out);

        fclose(out);

        exit(0);
}

Reply via email to