/**************************************************************************** * * * Third Year Project * * * * An IBM PC Emulator * * For Unix and X Windows * * * * By David Hedley * * * * * * This program is Copyrighted. Consult the file COPYRIGHT for more details * * * ****************************************************************************/ /* This is BIOS.H It contains definitions for the BIOS functions */ #ifndef BIOS_H #define BIOS_H #include "mytypes.h" #define BOOT #if defined(BOOT720) # define BOOTSECTORS 9 # define BOOTTRACKS 80 #elif defined(BOOT1_44) # define BOOTSECTORS 18 # define BOOTTRACKS 80 #elif defined(BOOT1_2) # define BOOTSECTORS 15 # define BOOTTRACKS 80 #elif defined(BOOT360) # define BOOTSECTORS 9 # define BOOTTRACKS 40 #endif #ifndef BOOTFILE #define BOOTFILE "DriveA" #endif struct DiskTab; extern struct DiskTab *fdisk, *hdisk; extern int numfdisks, numhdisks; void init_bios(void); void init_timer(void); void bios_off(void); void set_int(unsigned, BYTE *, unsigned, void (*)(void), BYTE *, unsigned); void disable(void); void enable(void); void put_scancode(BYTE *code, int count); BYTE read_port60(void); void loc(void); char *set_boot_file(char *); char *set_boot_type(int); char *set_floppydisk(char *buf); char *set_harddisk(char *buf); struct DiskTab *add_disk(struct DiskTab *dt, int *count, const char *fn, int s, int c, int h); #endif