Write MARIE assembly and see the two-pass assembly process: symbol table, machine code in hex & binary.
| Addr | Label | Opcode | Operand | Hex | Binary |
|---|---|---|---|---|---|
| 000 | LOAD | X | 1004 | 0001000000000100 | |
| 001 | ADD | Y | 3005 | 0011000000000101 | |
| 002 | STORE | Z | 2006 | 0010000000000110 | |
| 003 | HALT | 7000 | 0111000000000000 | ||
| 004 | X | DEC | 5 | 0005 | 0000000000000101 |
| 005 | Y | DEC | 3 | 0003 | 0000000000000011 |
| 006 | Z | DEC | 0 | 0000 | 0000000000000000 |