/[gxemul]/trunk/src/promemul/pc_bios.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/promemul/pc_bios.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 23 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC
# Line 25  Line 25 
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   *   *
# Line 878  static void pc_bios_int13(struct cpu *cp Line 878  static void pc_bios_int13(struct cpu *cp
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) {
# Line 897  static void pc_bios_int13(struct cpu *cp Line 897  static void pc_bios_int13(struct cpu *cp
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) {

Legend:
Removed from v.23  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26