Question 2 Which of the following is are illegal and why a a

Question 2:

Which of the following is (are) illegal? and why?

(a)    add a, r5

(b)   add a, #0f5h

(c)    add r2, r4

(d)   add a , #60h

(e)    add 60h , #90

(f)    add 0e0h , #55h

(g)   mov r3 , #500

Solution

(c), (g), are illegal because........

we can not add register to the accumlator, we can add only the \"values\" in register to the accumlator ( question a)

in question \"g\" only value is specified not the register address...we need address of the specific value to add it to the register..

Question 2: Which of the following is (are) illegal? and why? (a) add a, r5 (b) add a, #0f5h (c) add r2, r4 (d) add a , #60h (e) add 60h , #90 (f) add 0e0h , #5

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site