MMR1 tracking
This commit is contained in:
parent
5a7c85b34b
commit
f2a3d955a4
1 changed files with 4 additions and 4 deletions
8
cpu.cpp
8
cpu.cpp
|
@ -1240,6 +1240,8 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
||||||
// put on current stack
|
// put on current stack
|
||||||
pushStack(v);
|
pushStack(v);
|
||||||
|
|
||||||
|
b->addToMMR1(-2, 6);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1472,8 +1474,6 @@ void cpu::pushStack(const uint16_t v)
|
||||||
uint16_t a = addRegister(6, false, -2);
|
uint16_t a = addRegister(6, false, -2);
|
||||||
|
|
||||||
b->writeWord(a, v);
|
b->writeWord(a, v);
|
||||||
|
|
||||||
b->addToMMR1(-2, 6);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1484,8 +1484,6 @@ uint16_t cpu::popStack()
|
||||||
|
|
||||||
addRegister(6, false, 2);
|
addRegister(6, false, 2);
|
||||||
|
|
||||||
b->addToMMR1(2, 6);
|
|
||||||
|
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1565,6 +1563,8 @@ bool cpu::misc_operations(const uint16_t instr)
|
||||||
// JMP dst
|
// JMP dst
|
||||||
setPC(dst_value);
|
setPC(dst_value);
|
||||||
|
|
||||||
|
b->addToMMR1(-2, 6);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue