<!DOCTYPE html>
<html>
<head>
<title>OmniVM Single Node Simulator</title>
<style>
body { font-family: monospace; margin: 20px; }
textarea { width: 100%; height: 150px; }
pre { background: #f4f4f4; padding: 10px; }
button { margin: 5px; }
</style>
</head>
<body>
<h1>OmniVM Single Node Simulator</h1>
<p>Enter a JSON array of 128bit instructions (as objects) and click
Run.</p>
<textarea id="programInput">
[
{"opcode": "LOAD", "gas": 10, "operandA": "0x000000010000000A",
"operandB": 0},
{"opcode": "ADD", "gas": 5, "operandA": "0x000000010000000B",
"operandB": 0},
{"opcode": "STORE", "gas": 10, "operandA": "0x000000010000000C",
"operandB": 0},
{"opcode": "HALT", "gas": 1, "operandA": "0x0000000000000000",
"operandB": 0}
]
</textarea>
<br>
<button onclick="runProgram()">Run</button>
<button onclick="resetVM()">Reset</button>
<h2>Output</h2>
<pre id="output"></pre>
<h2>Registers</h2>
<pre id="registers"></pre>
<h2>Memory (first 20 entries)</h2>
<pre id="memory"></pre>
<script>
// ------------------------------------------------------------
// OmniVM 128-bit Fixed-Width ISA (Multi-Node Simulator)
// ------------------------------------------------------------
</script>
</body>
</html>