Write the following MARIE assembly language equivalent of th

Write the following MARIE assembly language equivalent of the following machine language instructions

a)0001 0010 0011 0100

b)1000 1000 0000 0000

c)0011 1010 1011 1100

d) 0111 0000 0000 0000

Solution

Pseudocode Algorithm Assembly Language Program Machine Language Program Machine Language Program Machine Language Program Steps label op  operand address Machine Instruction Set the value of A to 8    LOAD A 0000 0000 0000: 0000 0000 0000 0100 Set the value of B to 7 ADD B 0000 0000 0001: 0011 0000 0000 0101 Set the value of C to    STORE C 0000 0000 0011: 0001 0000 0000 0110 the value of A + B HALT 0000 0000 00011: 1111 0000 0000 0000 A: .DATA 8 0000 0000 0100: 0000 0000 0000 1000 B: .DATA 7 0000 0000 0101:    0000 0000 0000 0111 C: .DATA 0 0000 0000 0110: 0000 0000 0000 0000
Write the following MARIE assembly language equivalent of the following machine language instructions a)0001 0010 0011 0100 b)1000 1000 0000 0000 c)0011 1010 10

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site