8SA1Sim/index.html
2021-04-07 01:29:12 -07:00

64 lines
2.2 KiB
HTML

<html>
<head>
<title>MatCat's 8SA1 CPU Simulator</title>
</head>
<body style="font-family: monospace; font-size: 1.5em;">
<div>
<input type="button" id ="btn_rst" value="RESET" />
</div>
<div>
<span>DATA: </span><span id="Data_BUS"></span>
</div>
<div>
<span>PC&nbsp;&nbsp;: </span><span id="PC_Register"></span>
</div>
<div>
<span>MCC : </span><span id="MCC_Register"></span>
</div>
<div>
<span>CO&nbsp;&nbsp;: </span><span id="CO_Register"></span>
</div>
<div>
<span>SP&nbsp;&nbsp;: </span><span id="SP_Register"></span>
</div>
<div>
<span>SR&nbsp;&nbsp;: </span><span id="SR_Register"></span>
</div>
<div>
<span>IR&nbsp;&nbsp;: </span><span id="IR_Register"></span>
</div>
<div>
<span>GPA : </span><span id="GPA_Register"></span>
</div>
<div>
<span>GPB : </span><span id="GPB_Register"></span>
</div>
<div>
<span>GPC : </span><span id="GPC_Register"></span>
</div>
<div>
<span>GPD : </span><span id="GPD_Register"></span>
</div>
<div>
<input type="button" id ="btn_clk" value="CLOCK" />
<span id="clk_counter">0</span><input type="button" id ="btn_runtil" value="BREAK AT:" /> 0x<input id="addrbrk" type="text" value="05" pattern="[a-fA-F\d]+" />
<span>Clock Interval: </span><input id="clkinterval" type="number" value="1" size="4" min="1" max="999999" />mS
<span>Cycles Per Interval: </span><input id="clkcycles" type="number" value="1" size="4" min="1" max="999999" />
</div>
<div>
<span>Text Output (0x8000-0x83ff):</span><br />
<span id="TEXT_OUT" style="border: 1px solid black; min-width: 48em; min-height: 2.2em; display: inline-block;"></span>
</div>
<div>
<span>RAM : [<span id="Address_BUS"></span>]</span><br /><span id="RAM"></brspan>
</div>
<div>
<span>RAM (STACK): </span><br /><span id="STACK-RAM"></brspan>
</div>
<script src="js/cpu.js"></script>
<script src="js/microcode_compiler.js"></script>
<script src="js/main.js"></script>
<script src="js/asm_compiler.js"></script>
</body>
</html>