Added snippet to dump video BIOS.
This commit is contained in:
17
BIOSdet/DV16.C
Normal file
17
BIOSdet/DV16.C
Normal 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
17
BIOSdet/DV24.C
Normal 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
12
BIOSdet/DV32.C
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user