Write the assembly language equivalent of the following MARI
Solution
Answer: In MARIE, an instruction in machine language is of 16 bits. Out of these 16 bit, most significant 4 bits i.e. bits from 12 to 15, specify the opcode of the instruction to be executed. While remaining 12 bits i.e. bits from 0 to 11 specify the address with respect to which specified instruction is to be executed.
Hence in the given instruction 0111000000000000, most significant bits 0111 specify the opcode, while remaing bits 000000000000 specify the address.
In assembly language of MARIE, opcode 0111 (7 in hexadecimal) stands for instruction \'Halt\' which is used to terminate a program. Therefore, assembly language equivalent of given machine language instruction \'0111000000000000\' will be:
-----------------------------------
Halt 000
-----------------------------------
\'000\' is the hexadecimal equivalent of \'000000000000\'.
