Anda di halaman 1dari 11

Assignment 3

Name: Sowinkumar Namel a/l Nagarajan


ID

: EE095367

Section: 3B

1. Write an instruction sequence to swap the contents of data registers at


0x300 and 0x200. (ANS)

Before

After

2. Write an instruction sequence to load the value of 0x39 into data memory
locations 0x100-0x103.(ANS)
Before

After

3. Write an instruction sequence to subtract 10 from data memory


locations 0x30-0x34.(ANS)
Before

After

4. Write an instruction to store the contents of the WREG register in the


data register located at 0x25 of bank 4. (ANS)
Before

After

5. Write an instruction sequence to copy the contents of data memory at


0x100-0x103 to 0x200-0x203 using the post increment addressing mode.
(ANS)
Before

After

6. Write an instruction sequence to copy the contents of data memory at


0x100-0x103 to 0x203-0x200, that is, in the reverse order by combining
the use of postincrement and postdecrement modes.(ans)
Before

After

7. Write an instruction sequence to add to data registers at 0x300-0x303.


(ans)
Before

After

8. Write an instruction sequence to add the contents of the data registers


at 0x10 and 0x20 and store the sum at 0x30. (ans)
Before

After

9. Write an instruction sequence to subtract the contents of the data


register at 0x20 from that of the data register at 0x30 and store the
difference in the data register at 0x10.(ans)
Before

After

Anda mungkin juga menyukai