From de6ccea3c6d23b788acecb0744221a4f6078597a Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 27 Apr 2025 00:11:54 -0400 Subject: Replace view function with get_data --- inc/definitions.h | 2 +- inc/storage.h | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'inc') 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(MEM_WORD_SPEC - LINE_SPEC) #define MEM_WORDS static_cast(pow(2, MEM_WORD_SPEC)) #define MEM_LINES static_cast(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> view(int base, int lines) const; + std::vector> get_data() const; protected: /** -- cgit v1.2.3