Cpe-310 Mid Semester Exam Sample: Name
Cpe-310 Mid Semester Exam Sample: Name
Name: __________________
CpE-310
Sample
As usual, no notes, no books, no hats, no cell phones, no calculators, no electronics, no cheating, etc.
I hereby state that I will not, am not, and did not copy from any other person in my class nor did I in anyway obtain assistance or cheat on this exam. Signed _____________________________________
Learning Outcome
1. a) draw an overall computer architecture diagram 1. a) draw an overall computer architecture diagram 1. b) draw a detailed architecture diagram of the INTEL-8086 1. a) draw an overall computer architecture diagram 2. a) write a program in assembly language for the INTEL 80x86 1. b) use all addressing modes. 2. b) hand assemble to machine code. 2. b) hand assemble to machine code. 1. b) use all addressing modes. 1 h) draw the Interrupt process flow Total
Prob # 1a 1 1a 1b 1a 2a 1b 2b 2b 1b 1h 2 3 4 5 6 7 8 9 10
% 5 5 20 5 10 10 20 10 10 5 100+
Score
Name:______________
Test #1
Bit Nibble Byte Word
CpE-310
1. 5% What is
Mar 1, 2010
5. 10% Write an assembly language program located at 3F7E:0210 to move the number 0x2010 to the BX register. Then move the result to the memory location 3F7E:0000. Then XOR the contents of the AH register with the contents of the CH register putting the result in the AH register.
6. 10% What is the effective address if the CS:IP is (show your work!) a. 4000:37A2 _________ b. ABCD:5123 _________
7. 20 % Convert the following programs to its binary form (i.e. hand assemble.) Put this program in memory. Assume CS= 3000, DS = 4000, SS = 9000 a. 5%
Address Contents BEGIN ORG MOV 0602 H AH,BC
8. 10 % Convert the following jump instruction into binary. a. 5% ADDR contents 0310 0311 0312 0313 0314 0315 0316 b. 5% ADDR contents 0300 0301 0302 0303 0304 0305 0306 Instruction JMP to location 02AF Instruction JMP to location 0315
5
9.
10% What is the effective address if when AX = 2000 BX = A000 CX = 3000 CS = 4000 DX = 5000 DI = 6000 DS = 7000 SI = 8000 SS = 9000 Disp = 0044 a) r/m = 000 then EA = ?
b)