Diff for /np2/bios/bios.c between versions 1.76 and 1.77

version 1.76, 2005/05/20 13:59:46 version 1.77, 2007/11/11 13:54:14
Line 88  static void bios_reinitbyswitch(void) { Line 88  static void bios_reinitbyswitch(void) {
         UINT8   extmem;          UINT8   extmem;
         UINT8   boot;          UINT8   boot;
   
         if (!(np2cfg.dipsw[2] & 0x80)) {          if (!(pccore.dipsw[2] & 0x80)) {
 #if defined(CPUCORE_IA32)  #if defined(CPUCORE_IA32)
                 mem[MEMB_SYS_TYPE] = 0x03;              // 80386กม                  mem[MEMB_SYS_TYPE] = 0x03;              // 80386กม
 #else  #else
Line 101  static void bios_reinitbyswitch(void) { Line 101  static void bios_reinitbyswitch(void) {
   
         mem[MEMB_BIOS_FLAG0] = 0x01;          mem[MEMB_BIOS_FLAG0] = 0x01;
         prxcrt = 0x08;          prxcrt = 0x08;
         if (!(np2cfg.dipsw[0] & 0x01)) {                        // dipsw1-1 on          if (!(pccore.dipsw[0] & 0x01)) {                        // dipsw1-1 on
                 prxcrt |= 0x40;                  prxcrt |= 0x40;
         }          }
         if (gdc.display & (1 << GDCDISP_ANALOG)) {          if (gdc.display & (1 << GDCDISP_ANALOG)) {
                 prxcrt |= 0x04;                                                 // color16                  prxcrt |= 0x04;                                                 // color16
         }          }
         if (!(np2cfg.dipsw[0] & 0x80)) {                        // dipsw1-8 on          if (!(pccore.dipsw[0] & 0x80)) {                        // dipsw1-8 on
                 prxcrt |= 0x01;                  prxcrt |= 0x01;
         }          }
         if (grcg.chip) {          if (grcg.chip) {
Line 119  static void bios_reinitbyswitch(void) { Line 119  static void bios_reinitbyswitch(void) {
         if (grcg.chip >= 3) {          if (grcg.chip >= 3) {
                 prxdupd |= 0x40;                  prxdupd |= 0x40;
         }          }
         if (!(np2cfg.dipsw[1] & 0x80)) {                        // dipsw2-8 on          if (!(pccore.dipsw[1] & 0x80)) {                        // dipsw2-8 on
                 prxdupd |= 0x20;                  prxdupd |= 0x20;
         }          }
         mem[MEMB_PRXDUPD] = prxdupd;          mem[MEMB_PRXDUPD] = prxdupd;
Line 129  static void bios_reinitbyswitch(void) { Line 129  static void bios_reinitbyswitch(void) {
                 biosflag |= 0x80;                  biosflag |= 0x80;
         }          }
         biosflag |= mem[0xa3fea] & 7;          biosflag |= mem[0xa3fea] & 7;
         if (np2cfg.dipsw[2] & 0x80) {          if (pccore.dipsw[2] & 0x80) {
                 biosflag |= 0x40;                  biosflag |= 0x40;
         }          }
         mem[MEMB_BIOS_FLAG1] = biosflag;          mem[MEMB_BIOS_FLAG1] = biosflag;
Line 193  static void bios_screeninit(void) { Line 193  static void bios_screeninit(void) {
         REG8    al;          REG8    al;
   
         al = 4;          al = 4;
         al += (np2cfg.dipsw[1] & 0x04) >> 1;          al += (pccore.dipsw[1] & 0x04) >> 1;
         al += (np2cfg.dipsw[1] & 0x08) >> 3;          al += (pccore.dipsw[1] & 0x08) >> 3;
         bios0x18_0a(al);          bios0x18_0a(al);
 }  }
   

Removed from v.1.76  
changed lines
  Added in v.1.77


RetroPC.NET-CVS <cvs@retropc.net>