EE390_082_MAJOR1 - King Fahd University of Petroleum &...

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

View Full Document Right Arrow Icon
Electrical Engineering Department EE-390; Exam-1 (0xx) Prob.1 Prob.2 Prob.3 Total Name : Section : I.D. Answer all three questions. All questions carry equal marks. 1(a). Assume BX=1FF8 H . Write a 1-line assembly code that will multiply BX with 2 and store the answer in BX register (or after execution, BX Î BX × 2). ________________________________ 1(b). Assume CL=32 H ='2' ASCII Write a 3-line assembly code that will convert this ASCII number to Decimal number . ________________________________ ________________________________ ________________________________ 1(c). Write a program that will set carry-flag and compliment parity-flag and reset sign-flag with out affecting other flags. Status register for flags is given below: Bit 15 .... TF DF IF OF SF ZF AF PF CF Line 1: ___________________________ Line 4: ____________________________ Line 2: ___________________________ Line 5: ____________________________ Line 3: ___________________________
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/17/2010 for the course EE EE390 taught by Professor Mohandes during the Spring '10 term at King Fahd University of Petroleum & Minerals.

Page1 / 3

EE390_082_MAJOR1 - King Fahd University of Petroleum &...

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

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