initial FDS bring-up
This commit is contained in:
parent
9ef50bbda7
commit
ac3772c024
14 changed files with 870 additions and 1 deletions
|
|
@ -481,6 +481,18 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write
|
|||
case DIV_SYSTEM_NES:
|
||||
w->writeC(0xb4);
|
||||
w->writeC(baseAddr2|(write.addr&0xff));
|
||||
w->writeC(write.val);
|
||||
break;
|
||||
case DIV_SYSTEM_FDS: // yeah
|
||||
w->writeC(0xb4);
|
||||
if ((write.addr&0xff)==0x23) {
|
||||
w->writeC(baseAddr2|0x3f);
|
||||
} else if ((write.addr&0xff)>=0x80) {
|
||||
w->writeC(baseAddr2|(0x20+(write.addr&0x7f)));
|
||||
} else {
|
||||
w->writeC(baseAddr2|(write.addr&0xff));
|
||||
}
|
||||
|
||||
w->writeC(write.val);
|
||||
break;
|
||||
case DIV_SYSTEM_YM2151:
|
||||
|
|
@ -882,6 +894,20 @@ SafeWriter* DivEngine::saveVGM(bool* sysToExport, bool loop, int version) {
|
|||
howManyChips++;
|
||||
}
|
||||
break;
|
||||
case DIV_SYSTEM_FDS:
|
||||
if (!hasNES) {
|
||||
hasNES=0x80000000|disCont[i].dispatch->chipClock;
|
||||
willExport[i]=true;
|
||||
} else if (!(hasNES&0x80000000)) {
|
||||
hasNES|=0x80000000;
|
||||
willExport[i]=true;
|
||||
} else if (!(hasNES&0x40000000)) {
|
||||
isSecond[i]=true;
|
||||
willExport[i]=true;
|
||||
hasNES|=0xc0000000;
|
||||
howManyChips++;
|
||||
}
|
||||
break;
|
||||
case DIV_SYSTEM_LYNX:
|
||||
if (!hasLynx) {
|
||||
hasLynx=disCont[i].dispatch->chipClock;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue