Fundamentals of Computer Architecture - Jan 2003 (PAST PAPER)
Fundamentals of Computer Architecture - Jan 2003 (PAST PAPER)
Fundamentals of Computer Architecture - Jan 2003 (PAST PAPER)
UNIVERSITY OF MANCHESTER
January 2003
[PTO]
2 CS1031
b) To which decimal number does the binary pattern 1011 1101 correspond assuming
that it represents
i) An unsigned binary integer
ii) A signed binary integer in 1’s complement notation
iii) A signed binary integer in 2’s complement notation
iv) A signed binary integer in sign and magnitude notation (4 marks)
c) If register r1 contains the value 0x5c and register r2 contains the value 0x6a, what are
the results of the following ARM instructions
i) eor r0, r1, r2
ii) bic r0, r1, r2
iii) mov r0, r1, ror #4 (6 marks)
d) Explain, with the aid of a diagram illustrating the layout of affected memory locations,
the result of the following ARM instruction
stmda r8!, {r4-r6, r0} (4 marks)
e) How many address bits are required to address 64 Mbyte of memory in a byte
addressed memory. (2 marks)
2. a) All instructions in the ARM instruction set may be conditionally executed. Discuss the
advantages and disadvantages of this feature. (4 marks)
b) The following subroutine prints in hexadecimal format a number held in register r1.
Explain the purpose of each line of code.
Note: it is not enough to merely state the effect of a particular instruction, you should
also indicate how that statement contributes to the goal of the subroutine. For example,
the correct explanation of the statement
HexOut mov r2, #8
is not “move the value 8 into r0”, but rather “Hexout is a label which identifies the
subroutine. Register r2 is used as a loop counter and is initialised to the value 8
because there are 8 hexadecimal digits to be printed” (10 marks)
3 CS1031
c) Discuss the various compiler options (e.g. software libraries or hardware coprocessors)
for providing facilities for floating point calculations (4 marks)
d) Describe the IEEE 754 representation of a single precision floating point number
(6 marks)
e) Discuss the reasons for the format chosen for the IEEE 754 standard (4 marks)