Started: Nov 7 at 15:40
Question 4 1 pts
ID:q4vAStudy the following Finite State Machine:
Complete the truth table showing how to compute the next state from the
the following binary encoding:
State A: 00
State B: 01
State C: 10
State D: 11
Where state(1) (and nextState(1)) is the MSB
State(1) State(0) I nextState(1) nextState(0)
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
ID:q5vCAssume that a memory is initialised as follows:Assignment
Project Exam Help
Suppose the X register is initialised to 0xC338 and the following commands are issued:
What is the value in 0xC339? (Write your answer in decimal)
Question 6 1 pts
ID:q6vGAssume that a memory is initialised as follows:
Memory
Address Cell
Contents
0x00C336 0x64
0x00C337 0x28
0x00C338 0x31
0x00C339 0x13
0x00C33A 0x19
0x00C33B 0x65
Assignment Project Exam Help
A computer system has the value 0x00C338 in its stack pointer. The stack grows (when you push data) towards lower memory positions (numerically lowerAdd
the sequence of instructions:
POP R1
POP R2
ADD R1 R2
MOV R2 R1
ADD R2 R2
PUSH R1
PUSH R2
PUSH R3
What value is in R3. (Write your answer in decimal. If it cannot be computed given the above information, enter the value 0)
Question 7 1 pts
Question 9 1 pts
ID:q9DConsider the following definitions for d1, which represents a 4 byte array of
integer values:Assignment Project Exam Help
d1: .byte 0, 1, 2, 3
(1st element of the array for d1 has the value 0, 2nd element of the array for
array has the value 3)
If d1 is located in address 0x0324, what is the value of the second element of d1 after executing the following instructions? (Write your answer in Decimal)
Question 10 1 pts
ID:q10EAn AVR assembly program defines the following variables and labels:
.section .data
D1: .byte 5, 4, 8
D2: .byte 6, 1, 5
If the address of D1 is 0x55, what is the address of D2? (Write your answer in Decimal)
Question 11 1 pts
ID:q11FWhat is the decimal value (base 10) held in R9 after the following
sequenceAssignment Project Exam Help
of instructions?
LDI R18, 0x85
ADD R9, R9
Question 14 1 pts
Question 15 1 pts
Suppose you have a computer system with a 4 stage pipeline and clock period of 193 ns.
Assuming there are no pipeline stalls (no branching, no I/O requests, no interrupts etc.), how long would it take to execute the following instructions:
ADD R1 R2
ADD R1 R3
SUB R1 R4
Registers R1 to R4 are initialised to 5, 8, 5 and 4 respectively. Your answer
shouldAssignment Project Exam Help
be in ns.



