mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
Registers are cleared on code upload
This commit is contained in:
parent
a14853b12c
commit
6fc583d6f0
@ -40,6 +40,8 @@ public class CodeUploadHandler implements MessageHandler {
|
|||||||
user.getUser().getControlledUnit().getKeyboardBuffer().clear();
|
user.getUser().getControlledUnit().getKeyboardBuffer().clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Clear registers
|
||||||
|
user.getUser().getCpu().getRegisterSet().clear();
|
||||||
|
|
||||||
JSONObject response = new JSONObject();
|
JSONObject response = new JSONObject();
|
||||||
response.put("t", "codeResponse");
|
response.put("t", "codeResponse");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user