more command stream work

including a disassembler, large stack, and some other things
This commit is contained in:
tildearrow 2025-04-05 03:19:44 -05:00
parent 39ea7e6da0
commit f7c2fce461
5 changed files with 150 additions and 13 deletions

View file

@ -24,7 +24,7 @@
#include "../ta-log.h"
bool DivCSChannelState::doCall(unsigned int addr) {
if (callStackPos>=8) {
if (callStackPos>=16) {
readPos=0;
return false;
}
@ -47,6 +47,10 @@ DivCSChannelState* DivCSPlayer::getChanState(int ch) {
return &chan[ch];
}
unsigned int DivCSPlayer::getFileChans() {
return fileChans;
}
unsigned char* DivCSPlayer::getFastDelays() {
return fastDelays;
}
@ -471,9 +475,9 @@ bool DivCSPlayer::init() {
if (memcmp(magic,"FCS",4)!=0) return false;
unsigned int chans=stream.readI();
fileChans=stream.readI();
for (unsigned int i=0; i<chans; i++) {
for (unsigned int i=0; i<fileChans; i++) {
if (i>=DIV_MAX_CHANS) {
stream.readI();
continue;