switch( OPN_SLOT(r) ){\r
case 0: /* 0xa0-0xa2 : FNUM1 | depends on fn_h (below) */\r
{\r
- UINT32 fn = (((UINT32)( (CH->fn_h)&7))<<8) + v;\r
- UINT8 blk = CH->fn_h>>3;\r
+ UINT32 fn = ((UINT32)(ym2612.OPN.ST.fn_h & 7) << 8) | v;\r
+ UINT8 blk = ym2612.OPN.ST.fn_h >> 3;\r
/* keyscale code */\r
CH->kcode = (blk<<2) | opn_fktable[fn >> 7];\r
/* phase increment counter */\r
}\r
break;\r
case 1: /* 0xa4-0xa6 : FNUM2,BLK */\r
- CH->fn_h = v&0x3f;\r
+ ym2612.OPN.ST.fn_h = v & 0x3f;\r
ret = 0;\r
break;\r
case 2: /* 0xa8-0xaa : 3CH FNUM1 */\r
UINT8 ams; /* channel AMS */\r
\r
UINT8 kcode; /* +11 key code: */\r
- UINT8 fn_h; /* freq latch */\r
+ UINT8 pad2;\r
UINT8 upd_cnt; /* eg update counter */\r
UINT32 fc; /* fnum,blk:adjusted to sample rate */\r
UINT32 block_fnum; /* current blk/fnum value for this slot (can be different betweeen slots of one channel in 3slot mode) */\r
int TAC; /* timer a maxval */\r
int TAT; /* timer a ticker | need_save */\r
UINT8 TB; /* timer b */\r
- UINT8 pad2[3];\r
+ UINT8 fn_h; /* freq latch */\r
+ UINT8 pad2[2];\r
int TBC; /* timer b maxval */\r
int TBT; /* timer b ticker | need_save */\r
/* local time tables */\r