2021-04-03 22:03:47 -04:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>MatCat's 8SA1 CPU Simulator</title>
|
|
|
|
</head>
|
2021-04-04 05:16:38 -04:00
|
|
|
<body style="font-family: monospace; font-size: 1.5em;">
|
2021-04-04 06:40:30 -04:00
|
|
|
<div>
|
|
|
|
<input type="button" id ="btn_rst" value="RESET" />
|
|
|
|
</div>
|
2021-04-04 05:16:38 -04:00
|
|
|
<div>
|
|
|
|
<span>DATA: </span><span id="Data_BUS"></span>
|
|
|
|
</div>
|
|
|
|
<div>
|
2021-04-05 05:49:12 -04:00
|
|
|
<span>PC : </span><span id="PC_Register"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
2021-04-05 05:49:12 -04:00
|
|
|
<span>MCC : </span><span id="MCC_Register"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
2021-04-05 05:49:12 -04:00
|
|
|
<span>CO : </span><span id="CO_Register"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
2021-04-05 05:49:12 -04:00
|
|
|
<span>SP : </span><span id="SP_Register"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
2021-04-05 05:49:12 -04:00
|
|
|
<span>SR : </span><span id="SR_Register"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
2021-04-05 05:49:12 -04:00
|
|
|
<span>IR : </span><span id="IR_Register"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
2021-04-05 05:49:12 -04:00
|
|
|
<span>GPA : </span><span id="GPA_Register"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
2021-04-05 05:49:12 -04:00
|
|
|
<span>GPB : </span><span id="GPB_Register"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
2021-04-05 05:49:12 -04:00
|
|
|
<span>GPC : </span><span id="GPC_Register"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
2021-04-05 05:49:12 -04:00
|
|
|
<span>GPD : </span><span id="GPD_Register"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input type="button" id ="btn_clk" value="CLOCK" />
|
2021-04-06 02:49:23 -04:00
|
|
|
<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]+" />
|
2021-04-07 04:29:12 -04:00
|
|
|
<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" />
|
2021-04-05 05:49:12 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span>Text Output (0x8000-0x83ff):</span><br />
|
2021-04-06 02:49:23 -04:00
|
|
|
<span id="TEXT_OUT" style="border: 1px solid black; min-width: 48em; min-height: 2.2em; display: inline-block;"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
|
|
|
<div>
|
2021-04-05 05:49:12 -04:00
|
|
|
<span>RAM : [<span id="Address_BUS"></span>]</span><br /><span id="RAM"></brspan>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
2021-04-04 06:26:28 -04:00
|
|
|
<div>
|
|
|
|
<span>RAM (STACK): </span><br /><span id="STACK-RAM"></brspan>
|
|
|
|
</div>
|
2021-04-04 05:16:38 -04:00
|
|
|
|
|
|
|
<script src="js/cpu.js"></script>
|
2021-04-03 23:36:17 -04:00
|
|
|
<script src="js/microcode_compiler.js"></script>
|
2021-04-04 05:16:38 -04:00
|
|
|
<script src="js/main.js"></script>
|
2021-04-06 02:49:23 -04:00
|
|
|
<script src="js/asm_compiler.js"></script>
|
2021-04-03 22:03:47 -04:00
|
|
|
</body>
|
|
|
|
</html>
|