openMSX
CacheLine.hh
Go to the documentation of this file.
1 #ifndef CACHELINE_HH
2 #define CACHELINE_HH
3 
4 namespace openmsx {
5 namespace CacheLine {
6 
7 static const unsigned BITS = 8; // 256 bytes
8 static const unsigned SIZE = 1 << BITS;
9 static const unsigned NUM = 0x10000 / SIZE;
10 static const unsigned LOW = SIZE - 1;
11 static const unsigned HIGH = 0xFFFF - LOW;
12 
13 } // namespace CacheLine
14 } // namespace openmsx
15 
16 #endif
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5