biossums.c revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
/* biossums.c --- written by Eike W. for the Bochs BIOS */
/* adapted for the LGPL'd VGABIOS by vruppert */
#include <stdlib.h>
#include <stdio.h>
typedef unsigned char byte;
#define LEN_BIOS_DATA 0x8000
#define BIOS_OFFSET 0x7FFF
#define PMID_LEN 20
#define PMID_CHKSUM 19
long offset, tmp_offset;
int hits;
if( argc != 2 ) {
printf( "Error. Need a file-name as an argument.\n" );
exit( EXIT_FAILURE );
}
exit( EXIT_FAILURE );
}
exit( EXIT_FAILURE );
}
hits = 0;
offset = 0L;
offset = tmp_offset;
hits++;
}
printf( "Setting checksum." );
}
if( hits >= 2 ) {
printf( "Multiple PMID entries! No checksum set." );
}
if( hits ) {
printf( "\n" );
}
offset = 0L;
printf( "Setting checksum." );
}
printf( "\n\n" );
exit( EXIT_FAILURE );
}
exit( EXIT_FAILURE );
}
return( EXIT_SUCCESS );
}
if( !okay ) {
exit( EXIT_FAILURE );
}
}
return( BIOS_OFFSET );
}
int i;
sum = 0;
for( i = 0; i < MAX_OFFSET; i++ ) {
}
return( sum );
}
return( *( data + BIOS_OFFSET ) );
}
}
int i;
int len;
sum = 0;
for( i = 0; i < len; i++ ) {
if( i != PMID_CHKSUM ) {
}
}
return( sum );
}
long result = -1L;
break;
}
}
return( result );
}
}
}