25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: pc_bios.c,v 1.2 2005/09/30 14:17:04 debug Exp $ |
* $Id: pc_bios.c,v 1.3 2005/11/05 13:39:42 debug Exp $ |
29 |
* |
* |
30 |
* Generic PC BIOS emulation. |
* Generic PC BIOS emulation. |
31 |
* |
* |
1484 |
{ |
{ |
1485 |
char t[81]; |
char t[81]; |
1486 |
int x, y, nboxlines, i, any_disk = 0, disknr, tmp; |
int x, y, nboxlines, i, any_disk = 0, disknr, tmp; |
1487 |
|
int old_cursegment = cpu->cd.x86.cursegment; |
1488 |
int boot_id, boot_type, bios_boot_id = 0, nfloppies = 0, nhds = 0; |
int boot_id, boot_type, bios_boot_id = 0, nfloppies = 0, nhds = 0; |
1489 |
|
|
1490 |
/* Go to real mode: */ |
/* Go to real mode: */ |
1782 |
cpu->pc = 0x7c00; |
cpu->pc = 0x7c00; |
1783 |
|
|
1784 |
cpu->machine->md.pc.initialized = 1; |
cpu->machine->md.pc.initialized = 1; |
1785 |
|
|
1786 |
|
cpu->cd.x86.cursegment = old_cursegment; |
1787 |
} |
} |
1788 |
|
|
1789 |
|
|