From: Hugo Villeneuve Date: Sat, 23 Nov 2013 04:42:14 +0000 (-0500) Subject: Zero all memories when initializing program X-Git-Tag: v2.0.0~72 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=8d9b71ab3848729da1cf90a38a599be0b08cbb5c;p=emu8051.git Zero all memories when initializing program This is especially usefull to have NOP in program memory. --- diff --git a/src/memory.c b/src/memory.c index 67a9266..c5b2acf 100644 --- a/src/memory.c +++ b/src/memory.c @@ -70,6 +70,8 @@ memory_init(void) log_err("%s", strerror(errno)); exit(1); } + + memset(m->buf, 0x00, m->size); } }