E5506: Fix masked CR writing, Fix type

This commit is contained in:
cam900 2025-06-02 15:38:03 +09:00
parent 95b0028eeb
commit f3aca62e7a
2 changed files with 2 additions and 2 deletions

View file

@ -124,7 +124,7 @@
addWrite(0x3f,curPage); \
} \
} \
chan[c].cr=((es5506.regs_r((curPage&0x20)|c,0,false)&~(m))|((d)&(m)))&0xffff; \
chan[c].cr=(chan[c].cr&~(m))|((d)&(m)); \
rWrite(0,chan[c].cr) \
if (dumpWrites) { \
addWrite(0x0,0) \

View file

@ -67,7 +67,7 @@ class DivPlatformES5506: public DivDispatch, public es550x_intf {
int nextFreq, nextNote, currNote, wave;
int volMacroMax, panMacroMax;
bool useWave, isReverseLoop;
unsigned int cr;
unsigned short cr;
struct NoteChanged { // Note changed flags
union { // pack flag bits in single byte