COMP1860 instruction-set simulator

based on Null&Lobur's MARIE instruction set

16-bit words · 4-bit opcode + 12-bit address · memory 0x100–0x120 · two's complement

Main memory

Addr
Hex
Binary
Dec

Instruction set

1Load XAC ← M[X]
2Store XM[X] ← AC
3Add XAC ← AC + M[X]
4Subt XAC ← AC − M[X]
5InputAC ← next value in the input queue
6Outputdisplay AC
7Haltstop execution
8Skipcond800: skip if AC>0 · 400: skip if AC=0 · 000: skip if AC<0
9Jump XPC ← X

Registers

next instruction
0
Next step
Fetch
Decode
Execute
Load a program, then press Step to fetch the instruction at 0x100.

Memory image

One word per line: 100 1104, or bare values loaded from 0x100 upwards. Values may be 4 hex digits or 16 binary digits. Use # or // for comments.

Input & output

Execution trace