From 49814b6640ab45f180014061c0e12e89cedc20d0 Mon Sep 17 00:00:00 2001 From: tuz358 Date: Sun, 4 Mar 2018 17:31:11 +0900 Subject: [PATCH] Bug fix --- emulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emulator.cpp b/emulator.cpp index d953179..95ec596 100644 --- a/emulator.cpp +++ b/emulator.cpp @@ -4,7 +4,7 @@ void Emulator::init(size_t memorysize, FILE *bin){ memory.init(memorysize); memory.load_binary(bin); - instructions.init(0, (int)memorysize/2); + instructions.init(0, (int)memorysize/2, memory); } void Emulator::free(){