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; return true;
} }
#ifdef DEBUGGER_SUPPORT
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
uInt8 M6532::intim() uInt8 M6532::intim()
{ {
@ -456,7 +457,6 @@ uInt32 M6532::timerClocks() const
return uInt32(mySystem->cycles() - mySetTimerCycle); return uInt32(mySystem->cycles() - mySetTimerCycle);
} }
#ifdef DEBUGGER_SUPPORT
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void M6532::createAccessBases() void M6532::createAccessBases()
{ {

View File

@ -135,6 +135,7 @@ class M6532 : public Device
void setTimerRegister(uInt8 data, uInt8 interval); void setTimerRegister(uInt8 data, uInt8 interval);
void setPinState(bool shcha); void setPinState(bool shcha);
#ifdef DEBUGGER_SUPPORT
// The following are used by the debugger to read INTIM/TIMINT // The following are used by the debugger to read INTIM/TIMINT
// We need separate methods to do this, so the state of the system // We need separate methods to do this, so the state of the system
// isn't changed // isn't changed
@ -143,7 +144,6 @@ class M6532 : public Device
Int32 intimClocks(); Int32 intimClocks();
uInt32 timerClocks() const; uInt32 timerClocks() const;
#ifdef DEBUGGER_SUPPORT
void createAccessBases(); void createAccessBases();
/** /**