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