fox32: Set the stack pointer to the end of fast memory by default
This commit is contained in:
parent
982b4c7b89
commit
34de523f4d
|
@ -60,7 +60,7 @@ impl Cpu {
|
||||||
pub fn new(bus: Bus) -> Self {
|
pub fn new(bus: Bus) -> Self {
|
||||||
Cpu {
|
Cpu {
|
||||||
instruction_pointer: 0xF0000000,
|
instruction_pointer: 0xF0000000,
|
||||||
stack_pointer: 0x02000000,
|
stack_pointer: bus.memory.fast_memory.len() as u32,
|
||||||
register: [0; 32],
|
register: [0; 32],
|
||||||
flag: Flag { zero: false, carry: false },
|
flag: Flag { zero: false, carry: false },
|
||||||
halted: false,
|
halted: false,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user