about summary refs log tree commit diff stats
path: root/subx/010core.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-08 22:40:07 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-08 22:40:07 -0700
commit1e1eca1742ec396e5daa686e6b425dbd11f25baf (patch)
tree516b1f6ddc938ae3c788f6b617d8536971864176 /subx/010core.cc
parentb0832f6676c945c9b1262f97a34765b859299988 (diff)
downloadmu-1e1eca1742ec396e5daa686e6b425dbd11f25baf.tar.gz
4329
Drop a safety net; we now assume that Memory is large enough for any
addresses we may encounter.

Dropping all comparisons with Mem.size() now makes our Memory_offset
indirection airtight.
Diffstat (limited to 'subx/010core.cc')
-rw-r--r--subx/010core.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/subx/010core.cc b/subx/010core.cc
index dbab5fc5..d35472da 100644
--- a/subx/010core.cc
+++ b/subx/010core.cc
@@ -214,7 +214,6 @@ void load_program(istream& in, uint32_t addr) {
     write_mem_u8(addr, to_byte(c1, c2));
     trace(99, "load") << addr << " -> " << HEXBYTE << NUM(read_mem_u8(addr)) << end();
     addr++;
-    if (addr >= Mem.size()) Mem.resize(Mem.size()*2);
   }
   End_of_program = addr;
 }