Added snippet to dump video BIOS.

This commit is contained in:
2001-08-21 16:06:12 +01:00
parent 7ed3405198
commit d798f05272
3 changed files with 46 additions and 0 deletions

17
BIOSdet/DV16.C Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
#include <dos.h>
main(){
unsigned char far *bios_data = MK_FP (0x0000, 0x0000); //Get address of the BIOS data
unsigned short data_size; //For the BIOS data size
unsigned short temp=0; //For temporary numbers
FILE *feo;
long i,j;
feo=fopen("video16.rom","w+");
for(i=0x0000;i<=0x3FFF;i++)
{
bios_data=MK_FP(0xC000,i);
fputc(*bios_data,feo);
}
}

17
BIOSdet/DV24.C Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
#include <dos.h>
main(){
unsigned char far *bios_data = MK_FP (0x0000, 0x0000); //Get address of the BIOS data
unsigned short data_size; //For the BIOS data size
unsigned short temp=0; //For temporary numbers
FILE *feo;
long i,j;
feo=fopen("video24.rom","w+");
for(i=0x0000;i<=0x5FFF;i++)
{
bios_data=MK_FP(0xC000,i);
fputc(*bios_data,feo);
}
}

12
BIOSdet/DV32.C Normal file
View File

@@ -0,0 +1,12 @@
#include <stdio.h>
#include <dos.h>
main(){
unsigned char far *bios_data = MK_FP (0x0000, 0xC0000); //Get address of the BIOS data
FILE *feo;
long i,j;
feo=fopen("video32.rom","w+");
for(i=0; i<0x8000; i++)
fputc(*bios_data, feo);
}