OmniVM , Single Node SimulatorC"
Enter a JSON array of 128,bit instructions (as objects) and click Run.C"
[
{"opcode": "LOADI", "gas": 1, "operandA": "0xAA", "operandB": 0},
{"opcode": "STORE", "gas": 5, "operandA": "0x0000000100000001",
"operandB": 0},
{"opcode": "TELEPORT", "gas": 5, "operandA": "0x0000000200000000",
"operandB": 0},
{"opcode": "LOADI", "gas": 1, "operandA": "0xBB", "operandB": 1},
{"opcode": "STORE", "gas": 5, "operandA": "0x0000000200000002",
"operandB": 1},
{"opcode": "TELEPORT", "gas": 5, "operandA": "0x0000000100000000",
"operandB": 0},
{"opcode": "HALT", "gas": 1, "operandA": "0x0", "operandB": 0}
]
Run Reset
Output
--- NODE 1 ---
PC=0 LOADI A=aa B=0
PC=1 STORE A=100000001 B=0
PC=2 TELEPORT A=200000000 B=0
-> TELEPORT INITIATED: Routing state to Node 2
-> STATE RECEIVED: Resuming execution from PC=6
PC=6 HALT A=0 B=0
-> HALT
--- NODE 2 ---
-> STATE RECEIVED: Resuming execution from PC=3
PC=3 LOADI A=bb B=1
PC=4 STORE A=200000002 B=1
PC=5 TELEPORT A=100000000 B=0
-> TELEPORT INITIATED: Routing state to Node 1
Registers
--- NODE 1 ---
R0=aa R1=bb R2=0 R3=0 R4=0 R5=0 R6=0 R7=0 R8=0 R9=0 R10=0 R11=0
R12=0 R13=0 R14=0 R15=0
--- NODE 2 ---
R0=aa R1=bb R2=0 R3=0 R4=0 R5=0 R6=0 R7=0 R8=0 R9=0 R10=0 R11=0
R12=0 R13=0 R14=0 R15=0
Memory (first 20 entries)
--- NODE 1 ---
0x100000001 => aa
--- NODE 2 ---
0x200000002 => bb