projects
/
emu8051.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7f56a8
)
Add comment about reset value of stack pointer
author
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 16 Nov 2013 21:39:51 +0000
(16:39 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 17 Nov 2013 22:26:54 +0000
(17:26 -0500)
src/cpu8051.c
patch
|
blob
|
history
diff --git
a/src/cpu8051.c
b/src/cpu8051.c
index
a44cd7f
..
213f61b
100644
(file)
--- a/
src/cpu8051.c
+++ b/
src/cpu8051.c
@@
-118,6
+118,8
@@
cpu8051_Reset(void)
memory_sfr_write8(_P1_, 0xFF);
memory_sfr_write8(_P2_, 0xFF);
memory_sfr_write8(_P3_, 0xFF);
+
+ /* The default value of SP (after system reset) is 07 */
memory_sfr_write8(_SP_, 0x07);
}