diff --git a/src/devices/cpu/g65816/g65816.cpp b/src/devices/cpu/g65816/g65816.cpp index 89ecc44167b..20995f19a8f 100644 --- a/src/devices/cpu/g65816/g65816.cpp +++ b/src/devices/cpu/g65816/g65816.cpp @@ -771,7 +771,6 @@ void g65816_device::g65816_set_pc(unsigned val) g65816_jumping(REGISTER_PB | REGISTER_PC); } -#ifdef UNUSED_FUNCTION /* Get the current Stack Pointer */ unsigned g65816_device::g65816_get_sp() { @@ -783,7 +782,6 @@ void g65816_device::g65816_set_sp(unsigned val) { REGISTER_S = FLAG_E ? MAKE_UINT_8(val) | 0x100 : MAKE_UINT_16(val); } -#endif /* Get a register */ unsigned g65816_device::g65816_get_reg(int regnum) diff --git a/src/devices/cpu/g65816/g65816.h b/src/devices/cpu/g65816/g65816.h index 3c6acf9f6d1..b21845e76ec 100644 --- a/src/devices/cpu/g65816/g65816.h +++ b/src/devices/cpu/g65816/g65816.h @@ -140,10 +140,8 @@ protected: int bus_5A22_cycle_burst(unsigned addr); unsigned g65816_get_pc(); void g65816_set_pc(unsigned val); -#ifdef UNUSED_FUNCTION - unsigned g65816_get_sp(); - void g65816_set_sp(unsigned val); -#endif + [[maybe_unused]] unsigned g65816_get_sp(); + [[maybe_unused]] void g65816_set_sp(unsigned val); public: unsigned g65816_get_reg(int regnum); void g65816_set_reg(int regnum, unsigned value);