|
|
| version 1.3, 2004/02/18 20:11:37 | version 1.4, 2005/02/07 14:46:14 |
|---|---|
| Line 45 static void romeo_restore(BOOL opna) { | Line 45 static void romeo_restore(BOOL opna) { |
| juliet_YMF288A(0x1d, opn.reg[0x1d]); | juliet_YMF288A(0x1d, opn.reg[0x1d]); |
| } | } |
| for (i=0; i<0x0e; i++) { | for (i=0; i<0x0e; i++) { |
| juliet_YMF288A(i, ((BYTE *)&psg1.reg)[i]); | juliet_YMF288A(i, ((UINT8 *)&psg1.reg)[i]); |
| } | } |
| } | } |
| Line 186 static void IOOUTCALL ymfr_o18a(UINT por | Line 186 static void IOOUTCALL ymfr_o18a(UINT por |
| S98_put(NORMAL2608, opn.opnreg, dat); | S98_put(NORMAL2608, opn.opnreg, dat); |
| if (opn.opnreg < 0x10) { | if (opn.opnreg < 0x10) { |
| if (opn.opnreg != 0x0e) { | if (opn.opnreg != 0x0e) { |
| *((BYTE *)(&psg1.reg) + opn.opnreg) = dat; | *((UINT8 *)(&psg1.reg) + opn.opnreg) = dat; |
| juliet_YMF288A(opn.opnreg, dat); | juliet_YMF288A(opn.opnreg, dat); |
| if (opn.opnreg == 0x07) { | if (opn.opnreg == 0x07) { |
| keydisp_psgmix(&psg1); | keydisp_psgmix(&psg1); |
| } | } |
| else if ((opn.opnreg == 0x08) || (opn.opnreg == 0x09) || | else if ((opn.opnreg == 0x08) || (opn.opnreg == 0x09) || |
| (opn.opnreg == 0x0a)) { | (opn.opnreg == 0x0a)) { |
| keydisp_psgvol(&psg1, (BYTE)(opn.opnreg - 8)); | keydisp_psgvol(&psg1, (UINT8)(opn.opnreg - 8)); |
| } | } |
| } | } |
| } | } |
| Line 205 static void IOOUTCALL ymfr_o18a(UINT por | Line 205 static void IOOUTCALL ymfr_o18a(UINT por |
| if (opn.opnreg == 0x28) { | if (opn.opnreg == 0x28) { |
| juliet_YMF288A(opn.opnreg, dat); | juliet_YMF288A(opn.opnreg, dat); |
| if ((dat & 0x0f) < 3) { | if ((dat & 0x0f) < 3) { |
| keydisp_fmkeyon((BYTE)(dat & 0x0f), dat); | keydisp_fmkeyon((UINT8)(dat & 0x0f), dat); |
| } | } |
| else if (((dat & 0x0f) != 3) && ((dat & 0x0f) < 7)) { | else if (((dat & 0x0f) != 3) && ((dat & 0x0f) < 7)) { |
| keydisp_fmkeyon((UINT8)((dat & 0x0f) - 1), dat); | keydisp_fmkeyon((UINT8)((dat & 0x0f) - 1), dat); |