projects
/
emu8051.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Zero all memories when initializing program
[emu8051.git]
/
src
/
memory.c
diff --git
a/src/memory.c
b/src/memory.c
index
67a9266
..
c5b2acf
100644
(file)
--- a/
src/memory.c
+++ b/
src/memory.c
@@
-70,6
+70,8
@@
memory_init(void)
log_err("%s", strerror(errno));
exit(1);
}
log_err("%s", strerror(errno));
exit(1);
}
+
+ memset(m->buf, 0x00, m->size);
}
}
}
}