Questions for contest and review
-
Give 3 addressing modes and tell what they do.
-
What is the difference between the Mic-3 and the
Mic-4?
-
What makes an interupt routine "transparent"?
-
Explain the difference between dyadic operations
and monadic operations and what a shift is and what a rotation is with
regards to binary numbers.
-
An extra region of memory, this is allocated for
storage of dynamic or very large objects, such as lists, trees, or arrays.
-
What operation and B value would you use to change:
A = 11010011 10001011
111001101 00111100
into 11010011 00000000
000000000 00111100
Now rotate the answer right 8 bits.
Then shift it left 4 bits.
What is the final answer?
-
What would be the benefit(s) of using a two-address
instruction to perform an addition operation versus using a three-address
instruction?
-
Why could we consider the former to be "destructive"?
-
Discuss briefly the relationship between a computer's
Instruction Set Architeture and a compiler. Why is it important to have
an efficient compiler and what are the benefits of this? Define the term
optomizing compiler.
-
Give the Java statement that produced the following
IJVM code:
|LoadW
|LoadC
|Add
|LoadJ
|Sub
|Dup
|Add
|StoreX
-
Explain the difference between a shift and a rotate
and include short descriptions of what sign extensions and zero fills do.
-
What is the premise behind the idea that the "GOTO
Statement [is] Considered Harmful"?
-
What are the 7 common Instruction Types?
-
What does opcode stand for and what is its purpose?
-
Why is the most common memory cell size 8 bits?
-
What two primary factors makes up a good ISA?
-
What are the differences between procedures/functions,
co-routines, traps, and interrupts?
-
Explain what an accumulator is, and how it is
used.
-
What are the Design Critera for Instruction Formates?
-
What bits does the control register PSW hold and
why are these bits important?
-
A=1111 0100 0111 1010 B=1001 1100
0000 1001
1)Shift A right 3 bits with sign
extension
2)Rotate B left 5 bits
3)Compute (A AND B)NOR(A OR B)
-
Q.what can alter the flow of control - name 4.
-
Write the java code represented by
the assembly language:
1 ILOAD r
2 ILOAD s
3 ISUB
4 ISTORE q
5 BIPUSH 0
6 ISTORE f
7 ILOAD q
8 ILOAD f
9 IF_ICMPEQ
L1
10 ILOAD q
11 BIPUSH 1
12 ISUB
13 ISTORE q
14 GOTO L2
15 L1: BIPUSH 3
16 ISTORE s
17 L2:
Winner should get :
winning team should get new computers, mine doesnt liek to work most of
the time
Perhaps the winning team(s) could receive a few extra credit points,
or they could suggest what we do for the lab day after the exam?
I think a good prize for the winners would be extra points on the test!!
Why not give the winning a substantial amount of bonus points on the
exam, while the rest of the class will have to answer a bonus question
to get the points on the test.