Fix typo
Shutdown write should check for 1, not 0
Add RAM flash method

This is a precursor to detecting stack overflows
Add basic stack overflow detection

If a memory write is detected in the range that the original program
was flashed into when the simulator first powered on, the simulator
will detect this and throw an error.