| 1669 | } |
| 1670 | |
| 1671 | LPBYTE 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 |
no test coverage detected