Note: use 4 bits for the op-code and 12 bits for the ADDR.
LOAD <25>
ADD <33>
STORE <15>
JMP <8>
END
Greetings!!
Mnomonics Machine code
LOAD <25> 0001000000011001
ADD <33> 0011000000100001
STORE <15> 0010000000001111
JMP <8> 1000000000001000
END 0111000000000000
Explanation:
Conversion to the machine code is done by appending the binary equivalent of the address given with the opcode of the instruction. For example,
LOAD <25> [the load instruction have code 0001 and the equivalent of 25 is 11001 ]
The machine language equivalent is 0001 000000011001
Hope this helps
Get Answers For Free
Most questions answered within 1 hours.