Hi again .
If I have for example: AM_RANGE(0x1000, 0x1FFF) AM_MIRROR(0x3FC) AM_WRITE (test_w)
WRITE8_MEMBER (test_state :: test_w) { int real_ofs = ??? (offset); printf ("0x%04X\n", real_ofs); }
How to get the real offset (e.g. excluding the mirror address 'effect') into the test_w handler?
Additionally, what exactly AM_MIRROR does?
Is it a module of 0x3FC of the address, perhaps?
|