mirror of
https://github.com/guilhermewerner/tomasulo-simulator
synced 2025-06-15 13:24:20 +00:00
Update build.js
This commit is contained in:
@ -6,7 +6,7 @@ import { Container, Row, Col } from 'react-bootstrap';
|
|||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const [instructionStatus, setInstructionStatus] = useState([]);
|
const [instructionStatus, setInstructionStatus] = useState([]);
|
||||||
|
|
||||||
const geraTabelaParaInserirInstrucoes = (nInst) => {
|
const geraTabelaParaInserirInstrucoes = (nInst) => {
|
||||||
let tabela = [];
|
let tabela = [];
|
||||||
for (let i = 0; i < nInst; i++) {
|
for (let i = 0; i < nInst; i++) {
|
||||||
@ -66,7 +66,7 @@ export default function Home() {
|
|||||||
}
|
}
|
||||||
return tabela;
|
return tabela;
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleGenerateTable = (event) => {
|
const handleGenerateTable = (event) => {
|
||||||
const nInst = event.target.value;
|
const nInst = event.target.value;
|
||||||
setInstructionStatus(geraTabelaParaInserirInstrucoes(nInst));
|
setInstructionStatus(geraTabelaParaInserirInstrucoes(nInst));
|
||||||
@ -105,7 +105,7 @@ export default function Home() {
|
|||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Col>
|
<Col>
|
||||||
<Table bordered striped>
|
<Table bordered>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Instrução</th>
|
<th>Instrução</th>
|
||||||
|
Reference in New Issue
Block a user