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

Function _ViewOutput

source/Debugger/Debug.cpp:7193–7221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7191};
7192
7193static Update_t _ViewOutput ( ViewVideoPage_t iPage, UINT bVideoModeFlags )
7194{
7195 switch ( iPage )
7196 {
7197 // NOTE: Keep in sync: _ViewOutput() getVideoScannerAddressHGR()
7198 case VIEW_PAGE_X:
7199 bVideoModeFlags |= (!GetVideo().VideoGetSW80STORE() && GetVideo().VideoGetSWPAGE2()) ? VF_PAGE2 : 0;
7200 bVideoModeFlags |= GetVideo().VideoGetSWMIXED() ? VF_MIXED : 0;
7201 break; // Page Current & current MIXED state
7202 case VIEW_PAGE_0: bVideoModeFlags |= VF_PAGE0; break; // Pseudo Page 0 ($0000)
7203 case VIEW_PAGE_1: bVideoModeFlags |= 0 ; break; // Hardware Page 1 ($2000), NOTE: VF_HIRES will be passed in
7204 case VIEW_PAGE_2: bVideoModeFlags |= VF_PAGE2; break; // Hardware Page 2 ($4000)
7205 case VIEW_PAGE_3: bVideoModeFlags |= VF_PAGE3; break; // Pseudo Page 3 ($6000)
7206 case VIEW_PAGE_4: bVideoModeFlags |= VF_PAGE4; break; // Pseudo Page 4 ($8000)
7207 case VIEW_PAGE_5: bVideoModeFlags |= VF_PAGE5; break; // Pseudo Page 5 ($A000)
7208 case VIEW_PAGE_6: bVideoModeFlags |= VF_PAGE6; break; // Pseudo Page 6 (LC 1/2 $C000,$D000)
7209 case VIEW_PAGE_7: bVideoModeFlags |= VF_PAGE7; break; // Pseudo Page 7 (LC 2/- $D000,$E000)
7210 case VIEW_PAGE_8: bVideoModeFlags |= VF_PAGE8; break; // Pseudo Page 8 (LC RAM $E000,$F000)
7211 default:
7212 _ASSERT(0);
7213 break;
7214 }
7215
7216 bVideoModeFlags |= GetVideo().VideoGet80COLAUXEMPTY() ? VF_80COL_AUX_EMPTY : 0; // Preserve this flag
7217
7218 DebugVideoMode::Instance().Set(bVideoModeFlags);
7219 GetFrame().VideoRefreshScreen( bVideoModeFlags, true );
7220 return UPDATE_NOTHING; // intentional
7221}
7222
7223// Text 40
7224 Update_t CmdViewOutput_Text4X (int nArgs)

Callers 15

CmdViewOutput_Text4XFunction · 0.85
CmdViewOutput_Text41Function · 0.85
CmdViewOutput_Text42Function · 0.85
CmdViewOutput_Text8XFunction · 0.85
CmdViewOutput_Text81Function · 0.85
CmdViewOutput_Text82Function · 0.85
CmdViewOutput_GRXFunction · 0.85
CmdViewOutput_GR1Function · 0.85
CmdViewOutput_GR2Function · 0.85
CmdViewOutput_DGRXFunction · 0.85
CmdViewOutput_DGR1Function · 0.85
CmdViewOutput_DGR2Function · 0.85

Calls 6

VideoGetSW80STOREMethod · 0.80
VideoGetSWPAGE2Method · 0.80
VideoGetSWMIXEDMethod · 0.80
VideoGet80COLAUXEMPTYMethod · 0.80
VideoRefreshScreenMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected