fixed 3E+ peeks and pokes (using 3E code now)

This commit is contained in:
Thomas Jentzsch 2020-09-01 08:01:09 +02:00
parent 7273996532
commit 1262efb425
2 changed files with 0 additions and 42 deletions

View File

@ -59,28 +59,3 @@ bool Cartridge3EPlus::checkSwitchBank(uInt16 address, uInt8 value)
}
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;
}

View File

@ -124,23 +124,6 @@ class Cartridge3EPlus: public Cartridge3E
}
#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:
bool checkSwitchBank(uInt16 address, uInt8 value) override;