Answered step by step
Verified Expert Solution
Question
1 Approved Answer
No. 01 SEMESTER SPRING 2016 CS401-Computer Architecture & Assembly Language Programming Total Marks: 30 Due Date: 1/11/2016 Instructions Please read the following instructions carefully before
No. 01 SEMESTER SPRING 2016 CS401-Computer Architecture & Assembly Language Programming Total Marks: 30 Due Date: 1/11/2016 Instructions Please read the following instructions carefully before submitting assignment: It should be clear that your assignment will not get any credit if: o The assignment is submitted after due date. o The submitted assignment does not open or file corrupt. o The assignment is copied. o There is not mentioned the student Id in the assignment File or name of file is other than student ID. Note: For any query about the assignment, contact at cs401@vu.edu.pk GUD LUCK Marks: 30 Question: Marks [4+5+5+10+6 = 30] 1. Identify the problems in the following instructions and correct them by replacing them with one or two instruction having the same effect. a. mov [02], [22] b. mov [wordvar], 20 c. mov bx, al d. mov ax, [si+di+100] 2. What is the function of segment override prefix and what changes it brings to the opcode? 3. What are the two types of address wraparound? What physical address is accessed with [BX+SI] if FFFF is loaded in BX, SI and DS. 4. Write a program to calculate the square of 20 by using a loop that adds 20 to the accumulator 20 times. 5. Write instructions to do the following. a. Copy contents of memory location with offset 0025 in the current data segment into AX. b. Copy AX into memory location with offset 0FFF in the current data segment. c. Move contents of memory location with offset 0010 to memory location with offset 002F in the current data segment. Deadline Your assignment must be uploaded/submitted at or before 1/11/2016, You have to submit only .ccp
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started