\r
if ((d ^ old_mode) & 0xc0) {\r
#ifdef __GP2X__\r
- if (PicoOpt & POPT_EXT_FM) YM2612Write_940(a, d, get_scanline(is_from_z80));\r
+ if (PicoOpt & POPT_EXT_FM) return YM2612Write_940(a, d, get_scanline(is_from_z80));\r
#endif\r
return 1;\r
}\r
upd = 0;\r
break;\r
\r
- case 1: /* data port 0 */\r
- if (ST_address == 0x2b) upd = 0; /* DAC sel */\r
- break;\r
-\r
case 2: /* address port 1 */\r
if (addr_A1 == 1 && ST_address == v)\r
return 0;\r
\r
/* predict sample counter for next frame */\r
if (PsndLen_exc_add) {\r
- if (PsndLen_exc_cnt + PsndLen_exc_add >= 0x10000) length = PsndLen + 1;\r
- else length = PsndLen;\r
+ length = PsndLen;\r
+ if (PsndLen_exc_cnt + PsndLen_exc_add >= 0x10000) length++;\r
}\r
\r
/* give 940 ym job */\r