fox32: Set the stack pointer to the end of fast memory by default

This commit is contained in:
ry755 2022-01-27 17:22:00 -08:00 committed by Ry
parent 982b4c7b89
commit 34de523f4d

View File

@ -60,7 +60,7 @@ impl Cpu {
pub fn new(bus: Bus) -> Self {
Cpu {
instruction_pointer: 0xF0000000,
stack_pointer: 0x02000000,
stack_pointer: bus.memory.fast_memory.len() as u32,
register: [0; 32],
flag: Flag { zero: false, carry: false },
halted: false,