summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/definitions.h2
-rw-r--r--inc/storage.h8
2 files changed, 3 insertions, 7 deletions
diff --git a/inc/definitions.h b/inc/definitions.h
index 020f995..f0946b8 100644
--- a/inc/definitions.h
+++ b/inc/definitions.h
@@ -37,7 +37,7 @@
* The number of bits to specify a memory line
* The total number of lines in memory
*/
-#define MEM_WORD_SPEC 16
+#define MEM_WORD_SPEC 14
#define MEM_LINE_SPEC static_cast<unsigned int>(MEM_WORD_SPEC - LINE_SPEC)
#define MEM_WORDS static_cast<int>(pow(2, MEM_WORD_SPEC))
#define MEM_LINES static_cast<int>(pow(2, MEM_LINE_SPEC))
diff --git a/inc/storage.h b/inc/storage.h
index d7e49c8..f15dc0b 100644
--- a/inc/storage.h
+++ b/inc/storage.h
@@ -65,13 +65,9 @@ class Storage
virtual int read_word(void *id, int address, signed int &data) = 0;
/**
- * Sidedoor view of `lines` of memory starting at `base`.
- * @param The base line to start getting memory from.
- * @param The amount of lines to fetch.
- * @return A matrix of data values, where each row is a line and each column
- * is a word.
+ * @return a copy of `this->data'
*/
- std::vector<std::array<signed int, LINE_SIZE>> view(int base, int lines) const;
+ std::vector<std::array<signed int, LINE_SIZE>> get_data() const;
protected:
/**