mirror of https://github.com/stella-emu/stella.git
fixed 3E+ peeks and pokes (using 3E code now)
This commit is contained in:
parent
7273996532
commit
1262efb425
|
@ -59,28 +59,3 @@ bool Cartridge3EPlus::checkSwitchBank(uInt16 address, uInt8 value)
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
||||||
uInt8 Cartridge3EPlus::peek(uInt16 address)
|
|
||||||
{
|
|
||||||
uInt16 peekAddress = address;
|
|
||||||
address &= ROM_MASK;
|
|
||||||
|
|
||||||
if(address < 0x0040) // TIA peek
|
|
||||||
return mySystem->tia().peek(address);
|
|
||||||
|
|
||||||
return CartridgeEnhanced::peek(peekAddress);
|
|
||||||
}
|
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
||||||
bool Cartridge3EPlus::poke(uInt16 address, uInt8 value)
|
|
||||||
{
|
|
||||||
if(CartridgeEnhanced::poke(address, value))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
if(address < 0x0040) // TIA poke
|
|
||||||
// Handle TIA space that we claimed above
|
|
||||||
return mySystem->tia().poke(address, value);
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
|
@ -124,23 +124,6 @@ class Cartridge3EPlus: public Cartridge3E
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public:
|
|
||||||
/**
|
|
||||||
Get the byte at the specified address
|
|
||||||
|
|
||||||
@return The byte at the specified address
|
|
||||||
*/
|
|
||||||
uInt8 peek(uInt16 address) override;
|
|
||||||
|
|
||||||
/**
|
|
||||||
Change the byte at the specified address to the given value
|
|
||||||
|
|
||||||
@param address The address where the value should be stored
|
|
||||||
@param value The value to be stored at the address
|
|
||||||
@return True if the poke changed the device address space, else false
|
|
||||||
*/
|
|
||||||
bool poke(uInt16 address, uInt8 value) override;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool checkSwitchBank(uInt16 address, uInt8 value) override;
|
bool checkSwitchBank(uInt16 address, uInt8 value) override;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue