mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-22 09:30:32 +00:00
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:
parent
256e25e344
commit
1abe3ae456
@ -17,7 +17,10 @@ namespace EightBit {
|
|||||||
Signal<EventArgs> ReadingByte;
|
Signal<EventArgs> ReadingByte;
|
||||||
Signal<EventArgs> ReadByte;
|
Signal<EventArgs> ReadByte;
|
||||||
|
|
||||||
|
register16_t ADDRESS() const { return m_address; }
|
||||||
register16_t& ADDRESS() { return m_address; }
|
register16_t& ADDRESS() { return m_address; }
|
||||||
|
|
||||||
|
uint8_t DATA() const { return m_data; }
|
||||||
uint8_t& DATA() { return m_data; }
|
uint8_t& DATA() { return m_data; }
|
||||||
|
|
||||||
uint8_t peek() { return reference(); }
|
uint8_t peek() { return reference(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user