Fix system to use new opindex memory access
This commit is contained in:
parent
aa55b972e0
commit
22b32fc348
|
@ -253,14 +253,15 @@ class AddressDecoder
|
|||
writePages[0xC0] = &switches.write;
|
||||
}
|
||||
|
||||
ubyte read(ushort addr)
|
||||
ubyte opIndex(ushort addr)
|
||||
{
|
||||
return readPages[addr >> 8](addr);
|
||||
}
|
||||
|
||||
void write(ushort addr, ubyte val)
|
||||
ubyte opIndexAssign(ubyte val, ushort addr)
|
||||
{
|
||||
writePages[addr >> 8](addr, val);
|
||||
return val;
|
||||
}
|
||||
|
||||
// XXX address read only/write only code
|
||||
|
|
|
@ -256,8 +256,8 @@ class Scanner_II : Scanner
|
|||
{
|
||||
uint clock = vidCycle.val();
|
||||
if (((clock % 65) < 25) && (mode != Mode.HIRES))
|
||||
return decoder.read(
|
||||
cast(ushort)(0x1400 + (page * 0x400) + scanOffset(clock, mode)));
|
||||
return decoder[
|
||||
cast(ushort)(0x1400 + (page * 0x400) + scanOffset(clock, mode))];
|
||||
else
|
||||
return displayMem[mode][page].data[scanOffset(clock, mode)];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue