diff options
author | bd <bdunahu@operationnull.com> | 2025-03-06 01:35:27 -0500 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-06 01:35:27 -0500 |
commit | 3221a2c310afb6ed124d6b67afda110d4b8dcade (patch) | |
tree | 11889ec161e7cc76e71967cd2920279d36e46910 /src/storage/storage.cc | |
parent | e3e70b16d27b6972d6fe6f032426b889b03d1aef (diff) |
Allow sidedoor free access to writing memory
Diffstat (limited to 'src/storage/storage.cc')
-rw-r--r-- | src/storage/storage.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/storage/storage.cc b/src/storage/storage.cc index a9a883a..024699b 100644 --- a/src/storage/storage.cc +++ b/src/storage/storage.cc @@ -12,3 +12,12 @@ Storage::view(int base, int lines) ret.begin()); return ret; } + +void Storage::do_write(signed data, int address) +{ + int line = address / LINE_SIZE; + int word = address % LINE_SIZE; + + this->servicing = IDLE; + this->data->at(line).at(word) = data; +} |