63 lines
2.1 KiB
HTML
63 lines
2.1 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 : </span><span id="PC_Register"></span>
|
|
</div>
|
|
<div>
|
|
<span>MCC : </span><span id="MCC_Register"></span>
|
|
</div>
|
|
<div>
|
|
<span>CO : </span><span id="CO_Register"></span>
|
|
</div>
|
|
<div>
|
|
<span>SP : </span><span id="SP_Register"></span>
|
|
</div>
|
|
<div>
|
|
<span>SR : </span><span id="SR_Register"></span>
|
|
</div>
|
|
<div>
|
|
<span>IR : </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="text" value="1" />mS
|
|
</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> |