2021-04-03 22:03:47 -04:00
|
|
|
<html>
|
|
|
|
<head>
|
2021-04-08 02:07:32 -04:00
|
|
|
<title>MatCat's 8SA1 CPU Emulator</title>
|
2021-04-03 22:03:47 -04:00
|
|
|
</head>
|
2021-04-04 05:16:38 -04:00
|
|
|
<body style="font-family: monospace; font-size: 1.5em;">
|
2021-04-09 04:39:21 -04:00
|
|
|
<div style="display: flex;">
|
|
|
|
<div>
|
|
|
|
<span style="font-size: 0.7em;">Display (0xD00000-0xDFFFFF):</span><br />
|
|
|
|
<span style="font-size: 0.75em; display: inline-block; padding: 30px; background: rgb(213,206,166); background: -moz-radial-gradient(center, ellipse cover, rgba(213,206,166,1) 0%, rgba(201,193,144,1) 47%, rgba(183,173,112,1) 100%); background: -webkit-radial-gradient(center, ellipse cover, rgba(213,206,166,1) 0%,rgba(201,193,144,1) 47%,rgba(183,173,112,1) 100%); background: radial-gradient(ellipse at center, rgba(213,206,166,1) 0%,rgba(201,193,144,1) 47%,rgba(183,173,112,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d5cea6', endColorstr='#b7ad70',GradientType=1 );">
|
|
|
|
<span id="TEXT_OUT" style="border: 1px solid black; width: 44em; height: 28em; display: inline-block; color: #ddd; padding: 2px; background-color: #222;">MatCat 8SA1 Computer<br /></span></span>
|
|
|
|
</div>
|
|
|
|
<div style="font-size: 0.8em; margin-left: 10px; margin-top: 30px;">
|
|
|
|
<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>
|
2021-04-13 04:43:35 -04:00
|
|
|
<div>
|
|
|
|
<span>IC : </span><span id="IC_Register"></span>
|
|
|
|
</div>
|
2021-04-09 04:39:21 -04:00
|
|
|
<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>IR2 : </span><span id="IR2_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="07" pattern="[a-fA-F\d]+" /> <input type="button" id ="btn_stopclk" value="STOP CLOCK" disabled /><br />
|
|
|
|
<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="25" size="4" min="1" max="999999" />
|
|
|
|
</div>
|
|
|
|
|
2021-04-05 05:49:12 -04:00
|
|
|
</div>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
2021-04-09 04:39:21 -04:00
|
|
|
|
|
|
|
<div style="font-size: 0.9em;">
|
2021-04-07 04:51:21 -04:00
|
|
|
<span>RAM : [<span id="Address_BUS"></span>] <span>Lines: </span><input id="ramlines" type="number" value="4" size="4" min="1" max="1024" /></span><br /><span id="RAM"></span>
|
2021-04-04 05:16:38 -04:00
|
|
|
</div>
|
2021-04-09 04:39:21 -04:00
|
|
|
<div style="font-size: 0.9em;">
|
2021-04-07 04:51:21 -04:00
|
|
|
<span>RAM (STACK): </span><br /><span id="STACK-RAM"></span>
|
2021-04-04 06:26:28 -04:00
|
|
|
</div>
|
2021-04-04 05:16:38 -04:00
|
|
|
|
2021-04-08 02:07:32 -04:00
|
|
|
<script src="js/defines.js"></script>
|
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-10 18:33:40 -04:00
|
|
|
<script src="js/isa/ldx.js"></script>
|
|
|
|
<script src="js/isa/stx.js"></script>
|
|
|
|
<script src="js/isa/tx.js"></script>
|
|
|
|
<script src="js/isa/alu.js"></script>
|
|
|
|
<script src="js/isa/phx.js"></script>
|
|
|
|
<script src="js/isa/plx.js"></script>
|
|
|
|
<script src="js/isa/branching.js"></script>
|
|
|
|
<script src="js/isa/misc.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>
|