projects
/
emu8051.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf8b77
)
Zero all memories when initializing program
author
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 23 Nov 2013 04:42:14 +0000
(23:42 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 23 Nov 2013 04:42:14 +0000
(23:42 -0500)
This is especially usefull to have NOP in program memory.
src/memory.c
patch
|
blob
|
history
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);
}
+
+ memset(m->buf, 0x00, m->size);
}
}