EE 3750 Test 1

EE 3750 Test 1 - EE 3750 Exam 1 Spring 2005 Name:...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: EE 3750 Exam 1 Spring 2005 Name: Instructions 1. Print your name in the space provided above. 2. No calculators are allowed. 3. Turn your cell phone off and put it away. 4. Enough space has been provided for your answers, so do not write on the back of the pages. 5. Show all your work. l. (25 points) Write a complete program, using the simplified segment definition, to organize the LIST array. LIST has 40 byte sized unsigned integer numbers and the first half of the array - should be organized by swapping element 0th and 19m, 1St and 18th, 2nd and 17th. . .. The 0 second half of the array is organized by swapping odd and even elements. /_ 2. (25 points) What are the values in memory and registers after the following program is executed? «’PUSHAX momma)». 3:31" “PUSH BX ‘ - “’MOV AL,[BX] ~ -' ‘Soa'wm / VMOV AH,SS:[BX+2] ésmas-- as: r a». a + W 1 / “MOV MOE],EDX Dema M». = 5304.. saw VMOV EBX,[.1H] 06% w H W - 200 w 501% LMOV SLQOH ‘ " ' ' NOV BLDSH ‘ “CLD JREP MOVSB JXCHG AL,BL VMOVSX EDX,DS:[QAH] goo ; , -- .11 3» “POP BX I L“POP AX 3. (10 points) / Define the following: a. An array of 15 byte sized integers called TEMP_READ. This array should be initialized With the following values: 98, 98, 97, 99, 100, 100, 99, 100, 100, 95, 95, 95, 90, 90, 96. The DUP operator must be used. TQM? ,XZEAB '05! (A?! ‘ :00, 100‘ 6757" ‘naa ,qg'tgg Eagfioiggr b. Little endian notation. Amoco (wanna mama-.0 tam.- '2 Wm 0371‘ “H45 " .. a. .t L. Lbflcr «award-l MT ‘ m4 7&- " _‘3 A{ z [M Lat/‘16 ‘ l c B N O T? r f“ H TH 5 _l ., I'd U pjffitflrQ/‘i 5-. Matt} 3 T A . J A if.) a? M 5‘ S'C‘JN’ Vin/V7 8-9-11 its smut} N THE “(Caftzfl' p""y' ‘ 4. (10 points) Convert -41 to single precision floating point number representation. HF oottrlool SlbthlLBP-‘D ; MOHJOiv1§ I 5 it‘ t blith; EiPoHErn" at??? : + owl t u r; 0 mo Stand? \ L-' \DOOO\OO 00500000050 3:)de . SWAN if? {)Igmlprcaflo 5. (5 pornts) Who created the Z3 computer? 7/ V] 6. (5 points) What numbers are represented by a byte sized signed integer. lbw: «a ring stewed emu/ta «g Zntl ‘i’O Zfl‘gzl Zg-r + O 2544 0 6. Given the code below answer the following questions: 2 k a. (10 points) What are the values of DI during the execution of the program? / .1 Film OK mamas 0339.7 APQEéAj ox» Eafir‘fiéf A L E QC #5; T fN‘e Hfffloucvéfi n/JI- THE“! (M \gwcemcmca 6% b. (10 points) What are the value of the ECX and AL registers after the execution of the program? :3 AL = ‘3‘ ,_,.‘ ~._..-—' gVariable and constant definition _ BUFFER DB ‘EE3751 ’ MOV AL,’3’ MOV DI, OFFSET BUFFER MOV ECX,6' CLD REPNE SCASB ...
View Full Document

This note was uploaded on 01/25/2012 for the course EE 3750 taught by Professor Desouza during the Fall '08 term at LSU.

Page1 / 5

EE 3750 Test 1 - EE 3750 Exam 1 Spring 2005 Name:...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online