IT/S3M import: implement S8x

This commit is contained in:
tildearrow 2024-07-14 03:38:24 -05:00
parent e15ff1fe08
commit 6e405d4a99
2 changed files with 9 additions and 0 deletions

View file

@ -1408,6 +1408,10 @@ bool DivEngine::loadIT(unsigned char* file, size_t len) {
break;
case 'S': // special...
switch (effectVal[chan]>>4) {
case 0x8:
p->data[readRow][effectCol[chan]++]=0x80;
p->data[readRow][effectCol[chan]++]=(effectVal[chan]&15)<<4;
break;
case 0xc:
p->data[readRow][effectCol[chan]++]=0xec;
p->data[readRow][effectCol[chan]++]=effectVal[chan]&15;
@ -1510,6 +1514,7 @@ bool DivEngine::loadIT(unsigned char* file, size_t len) {
}
}
ds.systemLen=(maxChan+32)>>5;
ds.systemName="PC";
// find subsongs
ds.findSubSongs(maxChan);

View file

@ -1075,6 +1075,10 @@ bool DivEngine::loadS3M(unsigned char* file, size_t len) {
break;
case 'S': // special...
switch (effectVal>>4) {
case 0x8:
p->data[readRow][effectCol[chan]++]=0x80;
p->data[readRow][effectCol[chan]++]=(effectVal&15)<<4;
break;
case 0xc:
p->data[readRow][effectCol[chan]++]=0xec;
p->data[readRow][effectCol[chan]++]=effectVal&15;