add Neo Geo extended channel 2 support

This commit is contained in:
tildearrow 2021-12-14 14:31:57 -05:00
parent 004e8341c2
commit 95e3a098d0
6 changed files with 290 additions and 3 deletions

View file

@ -5,9 +5,6 @@
#include "ym2610shared.h"
#define FM_FREQ_BASE 622.0f
#define PSG_FREQ_BASE 7640.0f
static unsigned char konOffs[4]={
1, 2, 5, 6
};
@ -22,6 +19,7 @@ void DivPlatformYM2610::acquire(short* bufL, short* bufR, size_t start, size_t l
QueuedWrite& w=writes.front();
fm->write(0x0+((w.addr>>8)<<1),w.addr);
fm->write(0x1+((w.addr>>8)<<1),w.val);
printf("%.2x = %.2x\n",w.addr,w.val);
writes.pop();
delay=4;
}