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

Function MemGetAuxPtr

source/Memory.cpp:1671–1693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1669}
1670
1671LPBYTE MemGetAuxPtr(const WORD offset)
1672{
1673 LPBYTE lpMem = g_isMemCacheValid && (memshadow[(offset >> 8)] == (memaux+(offset & 0xFF00)))
1674 ? mem+offset // Return 'mem' copy if possible, as page could be dirty
1675 : memaux+offset;
1676
1677#ifdef RAMWORKS
1678 // Video scanner (for 14M video modes) always fetches from 1st 64K aux bank (RamWorks manual ref?)
1679 if (((SW_PAGE2 && SW_80STORE) || GetVideo().VideoGetSW80COL()) &&
1680 (
1681 ( ((offset & 0xFF00)>=0x0400) && ((offset & 0xFF00)<=0x0700) ) ||
1682 ( SW_HIRES && ((offset & 0xFF00)>=0x2000) && ((offset & 0xFF00)<=0x3F00) )
1683 )
1684 )
1685 {
1686 lpMem = g_isMemCacheValid && (memshadow[(offset >> 8)] == (RWpages[0]+(offset & 0xFF00)))
1687 ? mem+offset
1688 : RWpages[0]+offset;
1689 }
1690#endif
1691
1692 return lpMem;
1693}
1694
1695//-------------------------------------
1696

Callers 15

UpdateSHRCellMethod · 0.85
UpdateDHiResCellFunction · 0.85
UpdateDHiResCellRGBFunction · 0.85
UpdateDHiRes160CellFunction · 0.85
UpdateDLoResCellFunction · 0.85
UpdateText40ColorCellFunction · 0.85
UpdateHiResDuochromeCellFunction · 0.85
MemGetAuxPtrWithLCFunction · 0.85

Calls 1

VideoGetSW80COLMethod · 0.80

Tested by

no test coverage detected