Diff for /np2/cbus/boardpx.c between versions 1.1 and 1.3

version 1.1, 2007/07/20 14:39:11 version 1.3, 2007/11/03 00:00:19
Line 616  static const IOOUT p86_o3[4] = { Line 616  static const IOOUT p86_o3[4] = {
 static const IOINP p86_i3[4] = {  static const IOINP p86_i3[4] = {
                         p86_i288,       p86_i28a,       p86_i288,       p86_i28e};                          p86_i288,       p86_i28a,       p86_i288,       p86_i28e};
   
 /*  
 void boardpx1_reset(void) {  
   
         fmtimer_reset(np2cfg.spbopt & 0xc0);  
         opn.channels = 6;  
         opngen_setcfg(6, OPN_STEREO | 0x03f);  
         soundrom_loadex(np2cfg.spbopt & 7, "SPB");  
         opn.base = ((np2cfg.spbopt & 0x10)?0x000:0x100);  
 }  
   
 void boardpx1_bind(void) {  
   
         fmboard_fmrestore(0, 0);  
         fmboard_fmrestore(3, 1);  
         psggen_restore(&psg1);  
         fmboard_rhyrestore(&rhythm, 0);  
         sound_streamregist(&opngen, (SOUNDCB)opngen_getpcmvr);  
         sound_streamregist(&psg1, (SOUNDCB)psggen_getpcm);  
         rhythm_bind(&rhythm);  
         sound_streamregist(&adpcm, (SOUNDCB)adpcm_getpcm);  
         cbuscore_attachsndex(0x188 - opn.base, spb_o, spb_i);  
 }  
 */  
 // ----  // ----
   
 static const IOOUT spr_o[4] = {  static const IOOUT spr_o[4] = {
Line 653  static const IOOUT spr_o2[4] = { Line 630  static const IOOUT spr_o2[4] = {
 static const IOINP spr_i2[4] = {  static const IOINP spr_i2[4] = {
                         spr_i488,       spr_i48a,       spr_i48c,       spr_i48e};                          spr_i488,       spr_i48a,       spr_i48c,       spr_i48e};
   
   void boardpx1_reset(const NP2CFG *pConfig) {
   
 void boardpx1_reset(void) {          fmtimer_reset(pConfig->spbopt & 0xc0);
   
         fmtimer_reset(np2cfg.spbopt & 0xc0);  
         opn.reg[0x2ff] = 0;          opn.reg[0x2ff] = 0;
         opn.channels = 12;          opn.channels = 12;
         opn2.reg[0x2ff] = 0;          opn2.reg[0x2ff] = 0;
         opn2.channels = 12;          opn2.channels = 12;
         opngen_setcfg(24, OPN_STEREO | 0x0fff);          opngen_setcfg(24, OPN_STEREO | 0x00ffffff);
         soundrom_loadex(np2cfg.spbopt & 7, "SPB");          soundrom_loadex(pConfig->spbopt & 7, OEMTEXT("SPB"));
         opn.base = (np2cfg.spbopt & 0x10)?0x000:0x100;          opn.base = (pConfig->spbopt & 0x10)?0x000:0x100;
 }  }
   
 void boardpx1_bind(void) {  void boardpx1_bind(void) {
Line 692  void boardpx1_bind(void) { Line 668  void boardpx1_bind(void) {
         cbuscore_attachsndex(0x588, spr_o, spr_i);          cbuscore_attachsndex(0x588, spr_o, spr_i);
         cbuscore_attachsndex(0x088, spb_o2, spb_i2);          cbuscore_attachsndex(0x088, spb_o2, spb_i2);
         cbuscore_attachsndex(0x488, spr_o2, spr_i2);          cbuscore_attachsndex(0x488, spr_o2, spr_i2);
   
 }  }
   
   
 void boardpx2_reset(void) {  static void extendchannelx2(REG8 enable) {
   
         fmtimer_reset(np2cfg.spbopt & 0xc0);          opn3.extend = enable;
           if (enable) {
                   opn3.channels = 6;
                   opngen_setcfg(30, OPN_STEREO | 0x07000000);
           }
           else {
                   opn3.channels = 3;
                   opngen_setcfg(27, OPN_MONORAL | 0x07000000);
                   rhythm_setreg(&rhythm2, 0x10, 0xff);
           }
   }
   
   void boardpx2_reset(const NP2CFG *pConfig) {
   
           fmtimer_reset(pConfig->spbopt & 0xc0);
         opn.reg[0x2ff] = 0;          opn.reg[0x2ff] = 0;
         opn.channels = 12;          opn.channels = 12;
         opn2.reg[0x2ff] = 0;          opn2.reg[0x2ff] = 0;
         opn2.channels = 12;          opn2.channels = 12;
         opn3.channels = 6;          opn3.channels = 3;
         opngen_setcfg(30, OPN_STEREO | 0x07fff);          opngen_setcfg(27, OPN_STEREO | 0x38ffffff);
         soundrom_loadex(np2cfg.spbopt & 7, "SPB");          soundrom_loadex(pConfig->spbopt & 7, OEMTEXT("SPB"));
         opn.base = (np2cfg.spbopt & 0x10)?0x000:0x100;          opn.base = (pConfig->spbopt & 0x10)?0x000:0x100;
           fmboard_extreg(extendchannelx2);
 }  }
   
 void boardpx2_bind(void) {  void boardpx2_bind(void) {
Line 742  void boardpx2_bind(void) { Line 731  void boardpx2_bind(void) {
         pcm86io_bind();          pcm86io_bind();
   
         cbuscore_attachsndex(0x188, spb_o, spb_i);          cbuscore_attachsndex(0x188, spb_o, spb_i);
         cbuscore_attachsndex(0x688, spr_o, spr_i);          cbuscore_attachsndex(0x588, spr_o, spr_i);
         cbuscore_attachsndex(0x088, spb_o2, spb_i2);          cbuscore_attachsndex(0x088, spb_o2, spb_i2);
         cbuscore_attachsndex(0x488, spr_o2, spr_i2);          cbuscore_attachsndex(0x488, spr_o2, spr_i2);
         cbuscore_attachsndex(0x288, p86_o3, p86_i3);          cbuscore_attachsndex(0x288, p86_o3, p86_i3);
   
 }  }
   
 #endif  // defined(SUPPORT_PX)  #endif  // defined(SUPPORT_PX)

Removed from v.1.1  
changed lines
  Added in v.1.3


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