MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / SetCardMode

Method SetCardMode

source/SSI263.cpp:868–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866//-----------------------------------------------------------------------------
867
868void SSI263::SetCardMode(PHASOR_MODE mode)
869{
870 const PHASOR_MODE oldCardMode = m_cardMode;
871 m_cardMode = mode;
872
873 if (oldCardMode == m_cardMode)
874 return;
875
876 // mode change
877
878 if (m_currentMode.D7 == 1)
879 {
880 m_currentMode.D7 = 0; // So that \PH_Mockingboard\ path sets IFR. Post: D7=1
881 SetSpeechIRQ();
882 }
883
884 if (m_cardMode != PH_Phasor)
885 CpuIrqDeassert(IS_SPEECH);
886}
887
888//-----------------------------------------------------------------------------
889

Callers 1

SetPhasorModeMethod · 0.80

Calls 1

CpuIrqDeassertFunction · 0.85

Tested by

no test coverage detected