aboutsummaryrefslogtreecommitdiffstats
path: root/memdict.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-02-17 08:15:30 -0500
committerClyne Sullivan <clyne@bitgloo.com>2023-02-17 08:15:30 -0500
commit24a61f3c99125c97ca79ea173c959d7bd89f1a48 (patch)
tree4d89ad660335f718f32482f49f985747de4e5c5f /memdict.hpp
parente45926fa2a1bc332214f0467de6020529d91b7ba (diff)
some cleanup
Diffstat (limited to 'memdict.hpp')
-rw-r--r--memdict.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/memdict.hpp b/memdict.hpp
index 6209f3b..b956d5d 100644
--- a/memdict.hpp
+++ b/memdict.hpp
@@ -32,18 +32,16 @@ public:
return *reinterpret_cast<const Cell *>(dict + addr);
}
- virtual int write(Addr addr, Cell value) final {
+ virtual void write(Addr addr, Cell value) final {
*reinterpret_cast<Cell *>(dict + addr) = value;
- return 0;
}
virtual uint8_t readbyte(Addr addr) const final {
return dict[addr];
}
- virtual int writebyte(Addr addr, uint8_t value) final {
+ virtual void writebyte(Addr addr, uint8_t value) final {
dict[addr] = value;
- return 0;
}
};