Added mnemonic and instruction count to the isa page

This commit is contained in:
MatCat 2021-04-12 00:17:22 -07:00
parent e9a253a4d1
commit af38b37429

View File

@ -20,7 +20,12 @@ for (let a = 0; a < Instructions.length; a++) {
}
}
let outHTML = "";
let totalVarients = 0;
for (let a = 0; a < ISAPrepList.length; a++) {
totalVarients += ISAPrepList[a].Varients.length;
}
let outHTML = `<div>Total Mnemonics&nbsp;&nbsp;&nbsp;: ${ISAPrepList.length}<br />Total Instructions: ${totalVarients}</div>`;
ISAPrepList.sort((a, b) => (a.Bytecode > b.Bytecode) ? -1 : 1);
for (let a = 0; a < ISAPrepList.length; a++) {
outHTML += `<div style="width: 60%; background-color: #eee;">`;