1
0
forked from Rativel/BurritOS

memory.txt can be execute

This commit is contained in:
Baptiste
2023-03-05 23:49:28 +01:00
parent ea9c53e603
commit 6f6191ea3c
4 changed files with 23 additions and 10 deletions

View File

@@ -160,6 +160,7 @@ impl Mem_Checker{
pub fn fill_memory_from_Mem_Checker(m_c: &Mem_Checker, machine: &mut Machine){
machine.sp = m_c.sp;
machine.int_reg.set_reg(2, m_c.pc as i64);
machine.pc = m_c.pc as u64;