/[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 14 by dpavlin, Mon Oct 8 16:18:51 2007 UTC revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 25  Line 25 
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   *   *
# Line 1484  void pc_bios_init(struct cpu *cpu) Line 1484  void pc_bios_init(struct cpu *cpu)
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:  */
# Line 1781  void pc_bios_init(struct cpu *cpu) Line 1782  void pc_bios_init(struct cpu *cpu)
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    

Legend:
Removed from v.14  
changed lines
  Added in v.20

  ViewVC Help
Powered by ViewVC 1.1.26