27. Explain how each instruction in MARIE works.
INSTUCTIONS IN MARIE :
some of the instuctions are :
The Load instruction
Allows us to move data from memory into the CPU (via the MBR and theAC). All data (which includes anything that is not an instruction) from
memory must move first into the MBR and then into either the AC or theALU; there are no other options in this architecture.
Notice that
The Store instruction
Allows us to move data from the CPU back to memory.
The Add and Subt instructions
● Add and subtract, respectively, the data value found at address X to or from the value in the AC. The data located at address X is copied into the MBR where it is held until the arithmetic operation is executed.
Input and Output
The Halt command causes the current program execution to terminate.
The Skipcond instruction