mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-20 02:56:44 +00:00
Reverted accidental change caused by search and replace
This commit is contained in:
parent
a7bdbd2513
commit
a005e2b163
@ -24,7 +24,7 @@ public class CpuInitialisationListener implements GameEventListener {
|
|||||||
Clock clock = new Clock();
|
Clock clock = new Clock();
|
||||||
clock.setCpu(cpu);
|
clock.setCpu(cpu);
|
||||||
|
|
||||||
cubot.attachHardware(rngHW, RandomNumberGenerator.DEFAULT_ADDRESS);
|
cpu.getHardwareHost().attachHardware(rngHW, RandomNumberGenerator.DEFAULT_ADDRESS);
|
||||||
cubot.attachHardware(clock, Clock.DEFAULT_ADDRESS);
|
cpu.getHardwareHost().attachHardware(clock, Clock.DEFAULT_ADDRESS);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -23,6 +23,6 @@ public class CpuInitialisationListener implements GameEventListener {
|
|||||||
RadioReceiverHardware radioHw = new RadioReceiverHardware(controllableUnit);
|
RadioReceiverHardware radioHw = new RadioReceiverHardware(controllableUnit);
|
||||||
radioHw.setCpu(cpu);
|
radioHw.setCpu(cpu);
|
||||||
|
|
||||||
cubot.attachHardware(radioHw, RadioReceiverHardware.DEFAULT_ADDRESS);
|
cpu.getHardwareHost().attachHardware(radioHw, RadioReceiverHardware.DEFAULT_ADDRESS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ public class HwiInstruction extends Instruction {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Status execute(Target src, int srcIndex, Status status) {
|
public Status execute(Target src, int srcIndex, Status status) {
|
||||||
status.setErrorFlag(cubot.hardwareInterrupt(src.get(srcIndex), cpu.getStatus()));
|
status.setErrorFlag(cpu.getHardwareHost().hardwareInterrupt(src.get(srcIndex), cpu.getStatus()));
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -31,7 +31,7 @@ public class HwiInstruction extends Instruction {
|
|||||||
@Override
|
@Override
|
||||||
public Status execute(int src, Status status) {
|
public Status execute(int src, Status status) {
|
||||||
|
|
||||||
status.setErrorFlag(cubot.hardwareInterrupt(src, cpu.getStatus()));
|
status.setErrorFlag(cpu.getHardwareHost().hardwareInterrupt(src, cpu.getStatus()));
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -18,14 +18,14 @@ public class HwqInstruction extends Instruction {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Status execute(Target src, int srcIndex, Status status) {
|
public Status execute(Target src, int srcIndex, Status status) {
|
||||||
cubot.hardwareQuery(src.get(srcIndex));
|
cpu.getHardwareHost().hardwareQuery(src.get(srcIndex));
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Status execute(int src, Status status) {
|
public Status execute(int src, Status status) {
|
||||||
cubot.hardwareQuery(src);
|
cpu.getHardwareHost().hardwareQuery(src);
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user