{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Test 1 Solutions

Test 1 Solutions - EE3750 Test [email protected]" flag/g#29”...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: EE3750 Test] Name @924" flag/g #29” 6/26/03 Directions: This test contains 6 problems. You must work all of them. You have 60 minutes to complete this test. Do not spend excessive time on any one problem. Partial credit will be given for partial knowledge. Provide answers in indicated spaces where applicable. -— w > 13133750 Test] Name firzen Aaalfl’fim 6/26/03 Problem 1: Describe the actions performed by the CPU during the command MOV AX, [BP]? Do not forget to include the physical address generation and any modifications to registers or memory locations. (10 pts) My <- [fir/HEP] 5 2.. min! MMM’ {rm S‘Jotrfk 3g mm! “NW fifflfif MWM M 5,0 ’ "/4X flVCfW/J‘llt’fl MIX/Xi, Wflrfl' -—- MCI-wry unw/rngfig4 4/ Problem 2: Complete the following signed arithmetic operations and indicate the resultant state of the flags provided. (10 pts) 0100 1111 0010 1110 + @091 0101 0111 0010 CF 0 PF 0 m 1100 1101 1010 1110 + 1101 0101 0011 0110 IHOIOOOIOH'OOIOO EE3750 Testl Name (3425;, AMI/z! Zrcd 6/26/03 Problem 3: Provide the microcode for the following assembly operations: (10 pts) a) MOVBL,CL 5 pH . ,‘ IoomoMo Héml‘om 111ng;ny 01w MM [31,. (L (/14); f. 2/1”” 5 ‘ b) MOVAX, [D|+20h] . r (70379 IGOOIO/I/l OI/OOO/IOI 0010 (90003 d W 44M AX [DI] all}; ..___.__,___..__-.—_ _.__..__—._.____.___.__._..__ ‘ W EE3750 Test 1 6/26/03 Problem 4: What is the value of the array “result” LEA MOV GO: MOV ADD XLATB PUSH MOV MOV POP LOOP CODE RESULT Name (Era/en A 14/4" “6/ after the following code segment has run? (20 pts) BX, CODE CX, 6 AL, CL AL,CL ---—-—-) AL. MW} 12/ lb, 3’, i, 4/ "9 4452 rm /2 grey/‘1‘ BX BX, (x RESULT[BX-1],AL ——; (gt/2a! #0 rem/9‘ 5., 0 BX GO db ‘gotnidgmezrfslxg' db 6 dup(?) /‘ 5 A71 _—— --——’ w “I ’ —-——- flex!» 7 J, w——Tm EE3750Test1 Name if 4% MW?” 6/26/03 Problem 5: foo db 01h, 35h, 36h, 70h, 67h, 98h, 20h, 32h, 51h, 10h sum dw ? M4 Sfi/MpZ/hfi‘t MW 5X 9 may “,4pr 5%: M AX m” ()0; j 5 M/Aw 74¢ Wm may 51',fl } Mar/m 5am : may BL/ army [51] M Ma! fix; BX y fly add 51/ ‘2 5 MM“; sam g 4/5/1047 n I 00” 5' JP/jrf {elk/51 moV 5”“M/ A EE3750 Test 1 6/26/03 Problem 6: Write a segment of assembly code to accomplish the following tasks (in order): (30 pts) /5 /7 f a) Determine the length of the provided string by searching for the ‘$’ character. ’5' /,// b) Copy the entire string to the physical memory location 23000h. string db ‘you could'be at the beach right now$’ A solid/M I'm 13%, 5M}? y, [may 9L 0 ("may (1" _ . MW 6. 1 6’ jean/x: mw AL/[gx] J, j”! (5” (WW AL /t7£ / _ SS: fib/fi/Q IE dang (10/0! N” 441944 I 5‘ MC 0L Mai/mm (mm/m» xii” 447/ "8‘ /'/’IC ’ 7’5 1751/91 (If/1,. ./ Vim/g 57%ch '/,../ 'n Dr. (4' y’mze 00M: may Ax 32042911 / "54 ’ 'N/ / 1‘ fwd ff ' MW E5” AX f M x 02:” 2’ gay MW 01, MW J " [5 (74/ MW II, fifiis’fi?‘ Wrist; J; firm/m MW 61/01. 2‘ mmmr fir“ 0/40 [73/7 Mat/5‘6 J“ W 5y)?” ...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern