Diff for /np2/bios/bios.c between versions 1.61 and 1.66

version 1.61, 2004/03/22 05:38:47 version 1.66, 2004/06/04 16:11:02
Line 20 Line 20
   
 #define BIOS_SIMULATE  #define BIOS_SIMULATE
   
         BOOL    biosrom = FALSE;  
   
 static const char neccheck[] = "Copyright (C) 1983 by NEC Corporation";  static const char neccheck[] = "Copyright (C) 1983 by NEC Corporation";
   
 typedef struct {  typedef struct {
Line 195  static void bios_screeninit(void) { Line 193  static void bios_screeninit(void) {
   
 void bios_initialize(void) {  void bios_initialize(void) {
   
           BOOL    biosrom;
         char    path[MAX_PATH];          char    path[MAX_PATH];
         FILEH   fh;          FILEH   fh;
         UINT    i;          UINT    i;
Line 210  void bios_initialize(void) { Line 209  void bios_initialize(void) {
         }          }
         if (biosrom) {          if (biosrom) {
                 TRACEOUT(("load bios.rom"));                  TRACEOUT(("load bios.rom"));
                   pccore.rom |= PCROM_BIOS;
                 // PnP BIOSを潰す                  // PnP BIOSを潰す
                 for (i=0; i<0x10000; i+=0x10) {                  for (i=0; i<0x10000; i+=0x10) {
                         tmp = LOADINTELDWORD(mem + 0xf0000 + i);                          tmp = LOADINTELDWORD(mem + 0xf0000 + i);
Line 262  void bios_initialize(void) { Line 262  void bios_initialize(void) {
                 CopyMemory(mem + 0xf538e, itfrom + pos, 0x27);                  CopyMemory(mem + 0xf538e, itfrom + pos, 0x27);
         }          }
   
         CopyMemory(mem + 0x0fde00, keytable[0], 0x300);          CopyMemory(mem + 0x0fd800 + 0x0e00, keytable[0], 0x300);
   
         CopyMemory(mem + ITF_ADRS, itfrom, sizeof(itfrom));          CopyMemory(mem + ITF_ADRS, itfrom, sizeof(itfrom));
         mem[ITF_ADRS + 0x7ff0] = 0xea;          mem[ITF_ADRS + 0x7ff0] = 0xea;
Line 350  UINT MEMCALL biosfunc(UINT32 adrs) { Line 350  UINT MEMCALL biosfunc(UINT32 adrs) {
                         return(1);                          return(1);
   
                 case BIOS_BASE + BIOSOFST_INIT:         // ブート                  case BIOS_BASE + BIOSOFST_INIT:         // ブート
   #if 1           // for RanceII
                           bios_memclear();
   #endif
                           bios_vectorset();
   #if 1
                           bios0x09_init();
   #endif
                         bios_reinitbyswitch();                          bios_reinitbyswitch();
                         bios_vectorset();                          bios_vectorset();
                         bios_screeninit();                          bios_screeninit();
Line 361  UINT MEMCALL biosfunc(UINT32 adrs) { Line 368  UINT MEMCALL biosfunc(UINT32 adrs) {
                         return(1);                          return(1);
   
                 case BIOS_BASE + BIOSOFST_09:                  case BIOS_BASE + BIOSOFST_09:
                         CPU_REMCLOCK -= 300;                          CPU_REMCLOCK -= 500;
                         bios0x09();                          bios0x09();
                         return(1);                          return(1);
   
Line 393  UINT MEMCALL biosfunc(UINT32 adrs) { Line 400  UINT MEMCALL biosfunc(UINT32 adrs) {
                 case BIOS_BASE + BIOSOFST_CMT:                  case BIOS_BASE + BIOSOFST_CMT:
                         CPU_REMCLOCK -= 200;                          CPU_REMCLOCK -= 200;
                         bios0x1a_cmt();                          bios0x1a_cmt();
                         return(1);                          return(0);                                                                                      // return(1);
   
                 case BIOS_BASE + BIOSOFST_PRT:                  case BIOS_BASE + BIOSOFST_PRT:
                         CPU_REMCLOCK -= 200;                          CPU_REMCLOCK -= 200;

Removed from v.1.61  
changed lines
  Added in v.1.66


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