From e76c46e711ea8b6eb001861982353e19c5313ca8 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 24 Feb 2024 18:50:14 -0500 Subject: [PATCH] C219: bank hints issue #1759 --- src/engine/platform/c140.cpp | 16 +++++++++++++++- src/engine/platform/c140.h | 2 ++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/engine/platform/c140.cpp b/src/engine/platform/c140.cpp index 693f462c7..14903506b 100644 --- a/src/engine/platform/c140.cpp +++ b/src/engine/platform/c140.cpp @@ -314,6 +314,10 @@ void DivPlatformC140::tick(bool sysTick) { } } } + + for (int i=0; i<4; i++) { + bankLabel[i][0]='0'+groupBank[i]; + } } int DivPlatformC140::dispatch(DivCommand c) { @@ -557,6 +561,14 @@ float DivPlatformC140::getPostAmp() { return 3.0f; } +DivChannelPair DivPlatformC140::getPaired(int ch) { + if (!is219) return DivChannelPair(); + if ((ch&3)==0) { + return DivChannelPair(bankLabel[ch>>2],ch+1,ch+2,ch+3,-1,-1,-1,-1,-1); + } + return DivChannelPair(); +} + const void* DivPlatformC140::getSampleMem(int index) { return index == 0 ? sampleMem : NULL; } @@ -736,7 +748,9 @@ int DivPlatformC140::init(DivEngine* p, int channels, int sugRate, const DivConf parent=p; dumpWrites=false; skipRegisterWrites=false; - bankType=2; + bankType=0; + + memset(bankLabel,0,16); for (int i=0; i