Add comment about reset value of stack pointer
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 16 Nov 2013 21:39:51 +0000 (16:39 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 17 Nov 2013 22:26:54 +0000 (17:26 -0500)
src/cpu8051.c

index a44cd7f..213f61b 100644 (file)
@@ -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);
 }