|
|
| version 1.1, 2007/07/20 14:39:11 | version 1.2, 2007/10/28 16:01:34 |
|---|---|
| Line 622 void boardpx1_reset(void) { | Line 622 void boardpx1_reset(void) { |
| fmtimer_reset(np2cfg.spbopt & 0xc0); | fmtimer_reset(np2cfg.spbopt & 0xc0); |
| opn.channels = 6; | opn.channels = 6; |
| opngen_setcfg(6, OPN_STEREO | 0x03f); | opngen_setcfg(6, OPN_STEREO | 0x03f); |
| soundrom_loadex(np2cfg.spbopt & 7, "SPB"); | soundrom_loadex(np2cfg.spbopt & 7, OEMTEXT("SPB")); |
| opn.base = ((np2cfg.spbopt & 0x10)?0x000:0x100); | opn.base = ((np2cfg.spbopt & 0x10)?0x000:0x100); |
| } | } |
| Line 653 static const IOOUT spr_o2[4] = { | Line 653 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(void) { | void boardpx1_reset(void) { |
| fmtimer_reset(np2cfg.spbopt & 0xc0); | fmtimer_reset(np2cfg.spbopt & 0xc0); |
| Line 661 void boardpx1_reset(void) { | Line 660 void boardpx1_reset(void) { |
| 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(np2cfg.spbopt & 7, OEMTEXT("SPB")); |
| opn.base = (np2cfg.spbopt & 0x10)?0x000:0x100; | opn.base = (np2cfg.spbopt & 0x10)?0x000:0x100; |
| } | } |
| Line 692 void boardpx1_bind(void) { | Line 691 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); |
| } | } |
| static void extendchannelx2(REG8 enable) { | |
| 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(void) { | void boardpx2_reset(void) { |
| fmtimer_reset(np2cfg.spbopt & 0xc0); | fmtimer_reset(np2cfg.spbopt & 0xc0); |
| Line 703 void boardpx2_reset(void) { | Line 715 void boardpx2_reset(void) { |
| 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(np2cfg.spbopt & 7, OEMTEXT("SPB")); |
| opn.base = (np2cfg.spbopt & 0x10)?0x000:0x100; | opn.base = (np2cfg.spbopt & 0x10)?0x000:0x100; |
| fmboard_extreg(extendchannelx2); | |
| } | } |
| void boardpx2_bind(void) { | void boardpx2_bind(void) { |
| Line 742 void boardpx2_bind(void) { | Line 754 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) |