mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 10:36:43 +00:00
Fixes #90
This commit is contained in:
parent
85548ec3cb
commit
2a8658c598
@ -112,8 +112,6 @@ public class CPU implements JSONSerialisable {
|
||||
|
||||
public void reset() {
|
||||
status.clear();
|
||||
registerSet.getRegister("SP").setValue(config.getInt("stack_bottom"));
|
||||
registerSet.getRegister("BP").setValue(config.getInt("stack_bottom"));
|
||||
ip = codeSegmentOffset;
|
||||
}
|
||||
|
||||
@ -168,6 +166,8 @@ public class CPU implements JSONSerialisable {
|
||||
memory.set(EXECUTED_INS_ADDR, Util.getHigherWord(counter));
|
||||
memory.set(EXECUTED_INS_ADDR + 1, Util.getLowerWord(counter));
|
||||
|
||||
System.out.println(this);//todo remove
|
||||
|
||||
return elapsed;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user