mirror of
https://github.com/guilhermewerner/tomasulo-simulator
synced 2025-06-14 21:04:21 +00:00
@ -443,6 +443,15 @@ export default function Home() {
|
||||
}
|
||||
}
|
||||
|
||||
if (uf.instrucao?.operacao === "BNEZ") {
|
||||
if (uf.instrucao?.registradorR != uf.instrucao?.registradorS) {
|
||||
let entry = uf.estadoInstrucao.posicao;
|
||||
instructionStatus[entry].discart = true;
|
||||
instructionStatus[entry + 1].discart = true;
|
||||
setInstructionStatus(instructionStatus);
|
||||
}
|
||||
}
|
||||
|
||||
if ((uf.ocupado) && (uf.vj !== null) && (uf.vk !== null)) {
|
||||
uf.tempo = uf.tempo - 1;
|
||||
uf.estadoInstrucao.busy = true;
|
||||
|
Reference in New Issue
Block a user