90 lines
4.4 KiB
HTML
90 lines
4.4 KiB
HTML
<html>
|
|
<head>
|
|
<title>MatCat's 8SA1 CPU Emulator</title>
|
|
</head>
|
|
<body style="font-family: monospace; font-size: 1.5em;">
|
|
<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>
|
|
<div>
|
|
<span>IC : </span><span id="IC_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>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="30" 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="50" size="4" min="1" max="999999" /><br />
|
|
CPU Frequency: <span id="clk_freq"> </span>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div style="font-size: 0.9em;">
|
|
<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>
|
|
</div>
|
|
<div style="font-size: 0.9em;">
|
|
0x<input type="text" value="000000" pattern="[a-fA-F\d]+" id="txt_ramaddr" size="6"><input type="text" pattern="[a-fA-F\d]+" value="0000" id="txt_ramval" size="4"><input type="button" value="Save" id="btn_saveram">
|
|
</div>
|
|
<div style="font-size: 0.9em;">
|
|
<span>RAM (STACK): </span><br /><span id="STACK-RAM"></span>
|
|
</div>
|
|
|
|
<script src="js/defines.js"></script>
|
|
<script src="js/cpu.js"></script>
|
|
<script src="js/microcode_compiler.js"></script>
|
|
<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>
|
|
<script src="js/main.js"></script>
|
|
<script src="js/asm_compiler.js"></script>
|
|
</body>
|
|
</html> |