add some more DEBUGGER_SUPPORT defines

This commit is contained in:
thrust26 2020-03-29 18:36:26 +02:00
parent c2a8839b1a
commit 5600be0ce4
5 changed files with 10 additions and 1 deletions

View File

@ -181,6 +181,7 @@ bool Cartridge4A50::poke(uInt16 address, uInt8 value)
return myBankChanged;
}
#ifdef DEBUGGER_SUPPORT
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Device::AccessFlags Cartridge4A50::getAccessFlags(uInt16 address) const
{
@ -243,6 +244,7 @@ void Cartridge4A50::setAccessFlags(uInt16 address, Device::AccessFlags flags)
myCodeAccessBase[(address & 0xff) + 0x1ff00] |= flags;
}
}
#endif
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Cartridge4A50::checkBankSwitch(uInt16 address, uInt8 value)

View File

@ -153,6 +153,7 @@ class Cartridge4A50 : public Cartridge
bool poke(uInt16 address, uInt8 value) override;
private:
#ifdef DEBUGGER_SUPPORT
/**
Query the given address type for the associated access flags.
@ -166,7 +167,7 @@ class Cartridge4A50 : public Cartridge
@param flags A bitfield of AccessType directives for the given address
*/
void setAccessFlags(uInt16 address, Device::AccessFlags flags) override;
#endif
/**
Check all possible hotspots
*/

View File

@ -190,6 +190,7 @@ bool CartridgeAR::poke(uInt16 addr, uInt8)
return modified;
}
#ifdef DEBUGGER_SUPPORT
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Device::AccessFlags CartridgeAR::getAccessFlags(uInt16 address) const
{
@ -203,6 +204,7 @@ void CartridgeAR::setAccessFlags(uInt16 address, Device::AccessFlags flags)
myCodeAccessBase[(address & 0x07FF) +
myImageOffset[(address & 0x0800) ? 1 : 0]] |= flags;
}
#endif
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool CartridgeAR::bankConfiguration(uInt8 configuration)

View File

@ -159,6 +159,7 @@ class CartridgeAR : public Cartridge
bool poke(uInt16 address, uInt8 value) override;
private:
#ifdef DEBUGGER_SUPPORT
/**
Query the given address type for the associated access flags.
@ -172,6 +173,7 @@ class CartridgeAR : public Cartridge
@param flags A bitfield of AccessType directives for the given address
*/
void setAccessFlags(uInt16 address, Device::AccessFlags flags) override;
#endif
// Handle a change to the bank configuration
bool bankConfiguration(uInt8 configuration);

View File

@ -231,6 +231,7 @@ class System : public Serializable
void lockDataBus() { myDataBusLocked = true; }
void unlockDataBus() { myDataBusLocked = false; }
#ifdef DEBUGGER_SUPPORT
/**
Access and modify the access type flags for the given
address. Note that while any flag can be used, the disassembly
@ -238,6 +239,7 @@ class System : public Serializable
*/
Device::AccessFlags getAccessFlags(uInt16 address) const;
void setAccessFlags(uInt16 address, Device::AccessFlags flags);
#endif
public:
/**