This commit is contained in:
simon 2018-01-05 21:51:47 -05:00
parent a8beb8c3e2
commit c7b9df0690

View File

@ -37,6 +37,8 @@ public class CubotLeg extends CpuHardware implements JSONSerialisable {
@Override
public void handleInterrupt(Status status) {
if (cubot.getCurrentAction() == Action.IDLE) {
int a = getCpu().getRegisterSet().getRegister("A").getValue();
int b = getCpu().getRegisterSet().getRegister("B").getValue();
@ -71,6 +73,7 @@ public class CubotLeg extends CpuHardware implements JSONSerialisable {
}
}
}
}
@Override
public JSONObject serialise() {