Download presentation

Presentation is loading. Please wait.

Published byKylie Coombs Modified over 2 years ago

1
COMPSCI 210 Semester 2 - 2014 Tutorial 6 – Revision

2
2

3
Solution – Exercise 5.13 3 (a)ADD R3, R2, #0 (b)NOT R3, R3 ADD R3, R3, #1 ADD R1, R2, R3 (c) ADD R1, R1, #0 (e) AND R2, R2, #0

4
4

5
Solution – Exercise 5.23 5 ( LEA R1, #1 ) ( LDR R2, R1, #2 ) ( TRAP 0x25 )

6
6

7
7

8
Solution – Exercise 5.25 8 NOT R4, R3 ADD R4, R4, #1 ADD R1, R4, R2 BRz Done BRn Reg3 BRp Reg2 Reg3 ADD R1, R3, #0 BRnzp Done Reg2 ADD R1, R2, #0 Done TRAP 0x25

9
9 What is the equivalent instruction for HALT ?

10
Solution – Exercise 7.9 10 TRAP 0x25 has the same effect as using HALT

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google