Minor cleanup; exclude some debugger-only methods in non-debugger mode.

This commit is contained in:
Stephen Anthony 2020-01-27 13:29:15 -03:30
parent 5cb35031d1
commit 149582abd9
2 changed files with 3 additions and 3 deletions

View File

@ -422,6 +422,7 @@ bool M6532::load(Serializer& in)
return true;
}
#ifdef DEBUGGER_SUPPORT
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
uInt8 M6532::intim()
{
@ -456,7 +457,6 @@ uInt32 M6532::timerClocks() const
return uInt32(mySystem->cycles() - mySetTimerCycle);
}
#ifdef DEBUGGER_SUPPORT
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void M6532::createAccessBases()
{

View File

@ -135,6 +135,7 @@ class M6532 : public Device
void setTimerRegister(uInt8 data, uInt8 interval);
void setPinState(bool shcha);
#ifdef DEBUGGER_SUPPORT
// The following are used by the debugger to read INTIM/TIMINT
// We need separate methods to do this, so the state of the system
// isn't changed
@ -143,7 +144,6 @@ class M6532 : public Device
Int32 intimClocks();
uInt32 timerClocks() const;
#ifdef DEBUGGER_SUPPORT
void createAccessBases();
/**
@ -159,7 +159,7 @@ class M6532 : public Device
@param flags A bitfield of DisasmType directives for the given address
*/
void setAccessFlags(uInt16 address, uInt8 flags) override;
#endif // DEBUGGER_SUPPORT
#endif // DEBUGGER_SUPPORT
private:
// Reference to the console