Merge branch 'master' of github.com:TASEmulators/fceux
This commit is contained in:
commit
bef4e80e08
12
src/fds.cpp
12
src/fds.cpp
|
@ -223,16 +223,18 @@ void FCEU_FDSSelect(void)
|
|||
FCEU_DispMessage("Disk %d Side %c Selected", 0, SelectDisk >> 1, (SelectDisk & 1) ? 'B' : 'A');
|
||||
}
|
||||
|
||||
#define IRQ_Repeat (IRQa & 0x01)
|
||||
#define IRQ_Enabled (IRQa & 0x02)
|
||||
|
||||
static void FDSFix(int a) {
|
||||
if ((IRQa & 2) && IRQCount) {
|
||||
if ((IRQa & IRQ_Enabled) && IRQCount) {
|
||||
IRQCount -= a;
|
||||
if (IRQCount <= 0) {
|
||||
if (!(IRQa & 1)) {
|
||||
IRQa &= ~2;
|
||||
IRQCount = IRQLatch = 0;
|
||||
} else
|
||||
IRQCount = IRQLatch;
|
||||
X6502_IRQBegin(FCEU_IQEXT);
|
||||
if (!(IRQa & IRQ_Repeat)) {
|
||||
IRQa &= ~IRQ_Enabled;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (DiskSeekIRQ > 0) {
|
||||
|
|
Loading…
Reference in New Issue