From 1abe3ae456e1dcf8084e8471a8872df4a76ee174 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sun, 12 Aug 2018 17:08:03 +0100 Subject: [PATCH] Adding a couple of const member accessors allows some event handlers to be marked const Signed-off-by: Adrian Conlon --- inc/Bus.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/Bus.h b/inc/Bus.h index 6443955..9ee8f56 100644 --- a/inc/Bus.h +++ b/inc/Bus.h @@ -17,7 +17,10 @@ namespace EightBit { Signal ReadingByte; Signal 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(); }