From 3479e040610f2370266aa153eb23989b6b439c0d Mon Sep 17 00:00:00 2001 From: bigbass1997 Date: Wed, 8 Jan 2025 00:05:30 -0600 Subject: [PATCH] Added select switch --- src/emucore/Switches.cxx | 14 ++++++++++++++ src/emucore/Switches.hxx | 1 + 2 files changed, 15 insertions(+) diff --git a/src/emucore/Switches.cxx b/src/emucore/Switches.cxx index 5fd064122..69c1d3559 100644 --- a/src/emucore/Switches.cxx +++ b/src/emucore/Switches.cxx @@ -168,6 +168,20 @@ void Switches::setReset(bool setToA) } } +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +void Switches::setSelect(bool setSel) +{ + if(setSel) + { + mySwitches |= 0x02; + } + else + { + mySwitches &= ~0x02; + } +} + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void Switches::clear() { mySwitches = 0; diff --git a/src/emucore/Switches.hxx b/src/emucore/Switches.hxx index 625e3514c..1f6317711 100644 --- a/src/emucore/Switches.hxx +++ b/src/emucore/Switches.hxx @@ -115,6 +115,7 @@ class Switches : public Serializable void setRightDifficultyA(bool setToA); void setReset(bool setToA); + void setSelect(bool setSel); void clear(); /**