You are on page 1of 2

Thapar University

Department of Electronics and Communication Engineering,


Tutorial Sheet No 4, Embedded Systems Architecture (UEC-402)
1. Give description, Syntax and Examples of Following DLX instructions:
LB
LH
LW
MOVFP2I
CVTFP2I
LHI
SLT
RFE
2. What is difference between Jump and Jump-Link instructions in DLX? Also explain the
difference between JR and JALR instructions.
3. Explain the result of following DLX instructions:
SLLI R1, R2, #5
BNEZ R4, name
BFPF target
ANI R1, R2, #234 H
SD F0,40(R4)
CVTD2F
4. What role does FPSR register play in branching instructions, explain with suitable
examples.
5. Draw and explain the data flow diagram for the instruction SB 5(R1), R2. Assume
suitable memory location and data for both registers, if required.
6. Write meaning of following DLX instructions:
a. beqz r1,target
b. bfpt label
c. Trap <Label:26bit>
d. RFE

In part a) Justify that r1 can be used under Floating Instruction. Is it possible to use r0
instead of r1?
7. Write a program to add two 32 bit numbers placed consecutively in the memory , check if
the result is greater than or equal to 32H , if yes then halt the program else subtract the
two numbers to get a result in register R5.

You might also like