diff options
Diffstat (limited to 'subx')
-rw-r--r-- | subx/010core.cc | 1 | ||||
-rw-r--r-- | subx/011direct_addressing.cc | 2 |
2 files changed, 0 insertions, 3 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; } diff --git a/subx/011direct_addressing.cc b/subx/011direct_addressing.cc index 1e0375f6..cf61fb82 100644 --- a/subx/011direct_addressing.cc +++ b/subx/011direct_addressing.cc @@ -40,8 +40,6 @@ int32_t* effective_address(uint8_t modrm) { exit(1); } //: other mods are indirect, and they'll set addr appropriately - assert(addr > 0); - assert(addr + sizeof(int32_t) <= Mem.size()); return mem_addr_i32(addr); } |