8800-simulator/index.html

25 lines
518 B
HTML
Raw Normal View History

<!doctype html>
<html>
<head>
</head>
<body onload="test();">
<h1>test</h1>
<div id="cpu"></div>
<div id="mem"></div>
<script src="js/8080.js"></script>
<script src="js/sim8800.js"></script>
<script>
function test() {
var sim = new Sim8800(256, 100000);
var dumpCpuElem = document.getElementById('cpu');
var dumpMemElem = document.getElementById('mem');
sim.dumpCpu(dumpCpuElem);
sim.dumpMem(dumpMemElem);
}
</script>
</body>
</html>