commit | e7ee6daff7cc7344821af7775f455cb851784290 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Sat Aug 08 16:14:21 2020 -0700 |
committer | swissChili <swisschili@fastmail.com> | Sat Aug 08 16:14:21 2020 -0700 |
tree | 6224df92418a0b717765dc80cac64e10d915f314 | |
parent | b71e027d0c674bfa1716e94fa0b045e56772ce2f [diff] [blame] |
Add stack window
diff --git a/cpu.c b/cpu.c index d457868..f58d181 100644 --- a/cpu.c +++ b/cpu.c
@@ -25,6 +25,7 @@ cpu->regs[SP] = 0xFD; // stack at is 0x100 + SP cpu->pc = 0x600; // arbitrary program counter start cpu->running = true; + memset(cpu->mem + 0x100, 0, 0xFE); } cpu_t new_cpu()