Solved Assighnments
AIOU |
Course:Organization and Assembly (3453)
Level: B.S (CS) Semester: Spring, 2015
Total Marks: 100 Pass Marks: 50
ASSIGNMENT No. 1
All questions carry
equal marks
Q.1 What is difference between General-Purpose and Special Purposeregisters of 80x80 microprocessor? Briefly specify the role of each.
generalspecial
Q.2 How Segment registers of 80x80 microprocessor are used togenerate address in Real-Mode memory addressing?
real mode 8086Q.3 How a program is loaded into memory and then executed? Write allsteps in sequence. Draw a memory-map to explain.
Q.4 Explain the following addressing modes of instruction of x86
family of processors with two examples of each:
Q.5 What types of unsigned data representation (with variable) are available in Assembly Language? Write examples of any two of those types.
ASSIGNMENT No. 2
Total
Marks: 100 Pass Marks: 50
All questions carry
equal marks
Q.1 Explain the usage of registers in MUL and DIV instructions for 8-bit and 16-bit multiplication with a register (say cl/c) is provided as the only operand?
Q.2 Write a sequence of instructions to set and clear the following FLAGS:
iii) Overflow Flag iv) Carry Flag
Q.3 Explain the difference between LOOP and LOOPE instruction with the help of a program.
Q.4 Will the following code jump to the label named Target (Yes / No)? Explain reason in each.
mov ax, 8109h
camp ax, 26h
Jg Target
add ax, 8000h
Target:
Ans:
No, because the jg is used with signed value and
(8109h is negative, and 26h is positive.)
Q.5 Write a program to sequentially search the array LIST1 of 20 elements of WORD type. Return Index number (count 0 as first index) if search is successful otherwise display a message indicating the absence of a key.
3453
Computer Organization and Assembly Credit
Hours: 4 (3 + 1)
Recommended
Book: Assembly Language for Intel-Based Computers, 3rd
Edition, by
Kip
R. Irvine
Course
Outlines:
Post a Comment