From: Martin Perner Date: Tue, 2 Nov 2010 14:22:59 +0000 (+0100) Subject: sim: setdata bug X-Git-Tag: bootrom_v1~189 X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=calu.git;a=commitdiff_plain;h=8dcde224e54a74119f72edd49a903c94e14f45e9 sim: setdata bug --- diff --git a/3b_sim/sim.cpp b/3b_sim/sim.cpp index 764f216..24c6dcd 100644 --- a/3b_sim/sim.cpp +++ b/3b_sim/sim.cpp @@ -296,7 +296,10 @@ void setRam(const vector& in) addr = (addr & (~(BYTE_COUNT-1))) / BYTE_COUNT; val = convertStringToNum(in[2]); - cout << "Setting RAM-Address " << addr << " to 0x" << std::hex << setw(8) << setfill('0') << val << std::dec << endl; + addr *= BYTE_COUNT; + + cout << "Setting RAM-Address 0x" << std::hex << setw(8) << setfill('0') << addr; + cout << " to 0x" << setw(8) << setfill('0') << val << std::dec << endl; global_cpu->setRAM(addr,val); } catch(bad_cast&) {