Diff for /np2/io/cgrom.c between versions 1.2 and 1.5

version 1.2, 2003/10/21 11:22:05 version 1.5, 2003/12/12 01:04:40
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "memory.h"  #include        "cpucore.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
 #include        "font.h"  #include        "font.h"
Line 41  static void cgwindowset(CGROM cr) { Line 41  static void cgwindowset(CGROM cr) {
 // ---- I/O  // ---- I/O
   
 // write charactor code low  // write charactor code low
 static void IOOUTCALL cgrom_oa1(UINT port, BYTE dat) {  static void IOOUTCALL cgrom_oa1(UINT port, REG8 dat) {
   
         CGROM   cr;          CGROM   cr;
   
Line 52  static void IOOUTCALL cgrom_oa1(UINT por Line 52  static void IOOUTCALL cgrom_oa1(UINT por
 }  }
   
 // write charactor code high  // write charactor code high
 static void IOOUTCALL cgrom_oa3(UINT port, BYTE dat) {  static void IOOUTCALL cgrom_oa3(UINT port, REG8 dat) {
   
         CGROM   cr;          CGROM   cr;
   
Line 63  static void IOOUTCALL cgrom_oa3(UINT por Line 63  static void IOOUTCALL cgrom_oa3(UINT por
 }  }
   
 // write charactor line  // write charactor line
 static void IOOUTCALL cgrom_oa5(UINT port, BYTE dat) {  static void IOOUTCALL cgrom_oa5(UINT port, REG8 dat) {
   
         CGROM   cr;          CGROM   cr;
   
Line 75  static void IOOUTCALL cgrom_oa5(UINT por Line 75  static void IOOUTCALL cgrom_oa5(UINT por
 }  }
   
 // CG write pattern  // CG write pattern
 static void IOOUTCALL cgrom_oa9(UINT port, BYTE dat) {  static void IOOUTCALL cgrom_oa9(UINT port, REG8 dat) {
   
         CGROM   cr;          CGROM   cr;
   
         cr = &cgrom;          cr = &cgrom;
         if ((cr->code & 0x007e) == 0x0056) {          if ((cr->code & 0x007e) == 0x0056) {
                 font[((cr->code & 0x7f7f) << 4) +                  fontrom[((cr->code & 0x7f7f) << 4) +
                                                         cr->lr + cr->line] = dat;                                                          cr->lr + cr->line] = (UINT8)dat;
                 cgwindow.writable |= 0x80;                  cgwindow.writable |= 0x80;
         }          }
         (void)port;          (void)port;
 }  }
   
 static BYTE IOINPCALL cgrom_ia9(UINT port) {  static REG8 IOINPCALL cgrom_ia9(UINT port) {
   
         CGROM   cr;          CGROM   cr;
         BYTE    *ptr;  const BYTE      *ptr;
   
         cr = &cgrom;          cr = &cgrom;
         ptr = font;          ptr = fontrom;
         if (cr->code & 0xff00) {          if (cr->code & 0xff00) {
                 ptr += (cr->code & 0x7f7f) << 4;                  ptr += (cr->code & 0x7f7f) << 4;
                 ptr += cr->lr;                  ptr += cr->lr;

Removed from v.1.2  
changed lines
  Added in v.1.5


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