MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FCEU_FDSSelect

Function FCEU_FDSSelect

src/fds.cpp:204–225  ·  view source on GitHub ↗

void FCEU_FDSEject(void) { InDisk=255; } */

Source from the content-addressed store, hash-verified

202}
203*/
204void FCEU_FDSSelect(void)
205{
206 if (TotalSides == 0)
207 {
208 FCEU_DispMessage("Not FDS; can't select disk.", 0);
209 return;
210 }
211 if (InDisk != 255)
212 {
213 FCEU_DispMessage("Eject disk before selecting.", 0);
214 return;
215 }
216
217 if (FCEUI_EmulationPaused())
218 EmulationPaused |= EMULATIONPAUSED_FA;
219
220 if (FCEUMOV_Mode(MOVIEMODE_RECORD))
221 FCEUMOV_AddCommand(FCEUNPCMD_FDSSELECT);
222
223 SelectDisk = ((SelectDisk + 1) % TotalSides) & 3;
224 FCEU_DispMessage("Disk %d Side %c Selected", 0, SelectDisk >> 1, (SelectDisk & 1) ? 'B' : 'A');
225}
226
227#define IRQ_Repeat 0x01
228#define IRQ_Enabled 0x02

Callers 3

FCEU_DoSimpleCommandFunction · 0.85
FCEUMOV_AddInputStateFunction · 0.85
fdsSwitchDiskMethod · 0.85

Calls 4

FCEU_DispMessageFunction · 0.85
FCEUI_EmulationPausedFunction · 0.85
FCEUMOV_ModeFunction · 0.85
FCEUMOV_AddCommandFunction · 0.85

Tested by

no test coverage detected