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

Function set_csbits

source/NTSC.cpp:355–372  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

353
354//===========================================================================
355static void set_csbits()
356{
357 // NB. For models that don't have an alt charset then set /g_nVideoCharSet/ to zero
358 switch ( GetApple2Type() )
359 {
360 case A2TYPE_APPLE2: csbits = &csbits_a2[0]; g_nVideoCharSet = 0; break;
361 case A2TYPE_APPLE2PLUS: csbits = &csbits_a2[0]; g_nVideoCharSet = 0; break;
362 case A2TYPE_APPLE2JPLUS: csbits = &csbits_a2j[MemGetAnnunciator(2) ? 1 : 0]; g_nVideoCharSet = 0; break;
363 case A2TYPE_APPLE2E: csbits = Get2e_csbits(); break;
364 case A2TYPE_APPLE2EENHANCED:csbits = Get2e_csbits(); break;
365 case A2TYPE_PRAVETS82: csbits = &csbits_pravets82[0]; g_nVideoCharSet = 0; break; // Apple ][ clone
366 case A2TYPE_PRAVETS8M: csbits = &csbits_pravets8M[0]; g_nVideoCharSet = 0; break; // Apple ][ clone
367 case A2TYPE_PRAVETS8A: csbits = &csbits_pravets8C[0]; break; // Apple //e clone
368 case A2TYPE_TK30002E: csbits = &csbits_enhanced2e[0]; break; // Enhanced Apple //e clone
369 case A2TYPE_BASE64A: csbits = &csbits_base64a[GetVideo().GetVideoRomRockerSwitch() ? 0 : 1]; g_nVideoCharSet = 0; break; // Apple ][ clone
370 default: _ASSERT(0); csbits = &csbits_enhanced2e[0]; break;
371 }
372}
373
374//===========================================================================
375inline float clampZeroOne( const float & x )

Callers 1

NTSC_VideoInitAppleTypeFunction · 0.85

Calls 4

GetApple2TypeFunction · 0.85
MemGetAnnunciatorFunction · 0.85
Get2e_csbitsFunction · 0.85

Tested by

no test coverage detected