nkeynes@87: /** nkeynes@87: * $Id: bios.h,v 1.1 2006-01-22 22:40:53 nkeynes Exp $ nkeynes@87: * nkeynes@87: * "Fake" BIOS support, to allow basic functionality without the BIOS nkeynes@87: * actually being present. nkeynes@87: * nkeynes@87: * Copyright (c) 2005 Nathan Keynes. nkeynes@87: * nkeynes@87: * This program is free software; you can redistribute it and/or modify nkeynes@87: * it under the terms of the GNU General Public License as published by nkeynes@87: * the Free Software Foundation; either version 2 of the License, or nkeynes@87: * (at your option) any later version. nkeynes@87: * nkeynes@87: * This program is distributed in the hope that it will be useful, nkeynes@87: * but WITHOUT ANY WARRANTY; without even the implied warranty of nkeynes@87: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the nkeynes@87: * GNU General Public License for more details. nkeynes@87: */ nkeynes@87: #ifndef dream_bios_H nkeynes@87: #define dream_bios_H 1 nkeynes@87: nkeynes@87: #include nkeynes@87: #include nkeynes@87: nkeynes@87: #ifdef __cplusplus nkeynes@87: extern "C" { nkeynes@87: #endif nkeynes@87: nkeynes@87: /** nkeynes@87: * Execute a BIOS syscall identified by a syscall ID (currently the last nkeynes@87: * byte of the vector). nkeynes@87: */ nkeynes@87: void bios_syscall( uint32_t syscallid ); nkeynes@87: nkeynes@87: /** nkeynes@87: * Install the BIOS emu hack into ram (sets the vectors at 8C0000B0 through nkeynes@87: * 8C0000C0) nkeynes@87: */ nkeynes@87: void bios_install( void ); nkeynes@87: nkeynes@87: nkeynes@87: #ifdef __cplusplus nkeynes@87: } nkeynes@87: #endif nkeynes@87: #endif