Adding a couple of const member accessors allows some event handlers to be marked const

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon committed 2018-08-12 17:08:03 +01:00
1 parent 256e25e344
commit 1abe3ae456
1 file changed
+3
+3
View File
@@ -17,7 +17,10 @@ namespace EightBit {
Signal<EventArgs> ReadingByte;
Signal<EventArgs> ReadByte;
register16_t ADDRESS() const { return m_address; }
register16_t& ADDRESS() { return m_address; }
uint8_t DATA() const { return m_data; }
uint8_t& DATA() { return m_data; }
uint8_t peek() { return reference(); }