ZX beeper: "register" view

This commit is contained in:
tildearrow 2022-05-14 00:36:45 -05:00
parent cb63921747
commit c685b60a3c
2 changed files with 5 additions and 3 deletions

View File

@ -250,11 +250,12 @@ DivDispatchOscBuffer* DivPlatformZXBeeper::getOscBuffer(int ch) {
}
unsigned char* DivPlatformZXBeeper::getRegisterPool() {
return regPool;
ulaOut=sOffTimer?0x10:0x08;
return &ulaOut;
}
int DivPlatformZXBeeper::getRegisterPoolSize() {
return 112;
return 1;
}
void DivPlatformZXBeeper::reset() {
@ -274,6 +275,7 @@ void DivPlatformZXBeeper::reset() {
curChan=0;
sOffTimer=0;
sampleBank=0;
ulaOut=0;
}
bool DivPlatformZXBeeper::keyOffAffectsArp(int ch) {

View File

@ -73,7 +73,7 @@ class DivPlatformZXBeeper: public DivDispatch {
QueuedWrite(unsigned char a, unsigned char v): addr(a), val(v) {}
};
std::queue<QueuedWrite> writes;
unsigned char lastPan;
unsigned char lastPan, ulaOut;
int cycles, curChan, sOffTimer, delay;
int tempL[32];