25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: pc_bios.c,v 1.5 2006/02/16 05:57:10 debug Exp $ |
* $Id: pc_bios.c,v 1.6 2006/03/30 19:41:51 debug Exp $ |
29 |
* |
* |
30 |
* Generic PC BIOS emulation. |
* Generic PC BIOS emulation. |
31 |
* |
* |
878 |
} |
} |
879 |
|
|
880 |
debug("[ pc_bios_int13(): %s biosdisk 0x%02x (offset=" |
debug("[ pc_bios_int13(): %s biosdisk 0x%02x (offset=" |
881 |
"0x%llx) mem=0x%04x:0x%04x ]\n", ah==2? "read from" |
"0x%"PRIx64") mem=0x%04x:0x%04x ]\n", ah==2? |
882 |
: "write to", dl, (long long)offset, |
"read from" : "write to", dl, (uint64_t) offset, |
883 |
cpu->cd.x86.s[X86_S_ES], bx); |
cpu->cd.x86.s[X86_S_ES], bx); |
884 |
|
|
885 |
if (ah == 3) { |
if (ah == 3) { |
897 |
if (!res) { |
if (!res) { |
898 |
err = 4; |
err = 4; |
899 |
fatal("[ pc_bios_int13(): FAILED to %s" |
fatal("[ pc_bios_int13(): FAILED to %s" |
900 |
" biosdisk 0x%02x (offset=0x%llx)" |
" biosdisk 0x%02x (offset=0x%"PRIx64")" |
901 |
" ]\n", ah==2? "read from" : |
" ]\n", ah==2? "read from" : |
902 |
"write to", dl, (long long)offset); |
"write to", dl, (uint64_t) offset); |
903 |
} else if (ah == 2) { |
} else if (ah == 2) { |
904 |
cpu->cd.x86.cursegment = X86_S_ES; |
cpu->cd.x86.cursegment = X86_S_ES; |
905 |
if (bx + 512*al > 0x10000) { |
if (bx + 512*al > 0x10000) { |