CS501 ASSIGNMENT NO. 02 Solution 2 Spring 2013

No Comments
1)  R [1]  ß  R [2] + (-56)
constant 56 is subtracted from the value stroed in register r2 and result is stored in register r1

2)    R[5] ←R[0] ©R[6]/R[3]
the value of register r0 and r6 is concatenated and devided by the value of the register r3. the result is stored in register r5.

3) R [4] ß  R [3] ~ R [1]
logical Or the values of register r3 and r1 and result is stored in register r4.

4)    IO[R [4]+1]ß  R[7]]

value of the register R7 will move to the output device specified by the adding contents of the register R[4] and  const 1

5)    M[R [1] +13]    ß   R [3]

The value of ther r3 is being stored to the memory location that correspond to the location the sum of the constant 13 and the value stored in the r1.








Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment