You are on page 1of 4

Capital University of Science and Technology

Department of Computer Science

CS 2523: Computer Organization and Assembly Language (3): Spring 2021

Assignment 3: Write, Assemble, Debug, and Execute Assembly Code, Instruction Groups
CLO 1 Define concepts in the design of microprocessor as state machine and designing its data path and its
controller.
CLO 2 Describe how the basic units of the Intel 8088 architecture work together to represent Integer Numbers,
Floating Numbers and register representation inside the microprocessor.
CLO 3 Implement assembly programs of intermediate complexity using the intel 8088 architecture. The student
should also be able to convert intermediate complexity program in high level language into assembly code.
Maximum Marks: 10 Instructor: Ms. Tayyaba Zaheer
Announcement Date: 23rd April 2021 Due Date: 30th April 2021 till 12:45 PM via MicrosoftTeams
Guidelines:
You are required to submit the assignment file (word or pdf) as
courseCode_studentReg#_studenName via MicrosoftTeams (\Assignments\COAL-
CS2523(1)\Assignment 3).
Important Note:
 Must not copy from other students, so do it all yourself.
 Assignment should be hand written. Take pictures of your solution, after that paste pictures in
word document and then submit word or pdf file.
Tools/Software Requirement (Optional):
1. Microsoft Word.
2. emu8086.
Important Note:
1) Must not copy from other students, so do it all yourself.
Description:
Emu8086 is an 8086-microprocessor emulator and disassembler. Emu8086 permits to assemble,
emulate and debug 8086 programs (16bit/DOS).
Tasks: [Hint: you can take help from lectures]
Task#1: Assembly Language Programming: Write down the states of RAM and registers, in line by line
Debugging Mode, in the following given scenarios. (06 marks)
Question#1:

Page 1 of 4
Solution:

1. Ax =
2. Ax =
3. Ax =
4. Ax = and Bx =
5. Ax= and Bx=
6. Ax= and Bx=
7. Ax= and Bx=

Question#2:

Solution:

1. Ax =
2. Ax = and Bx =
3. Ax = and Bx=
4. Ax = and Bx =

Page 2 of 4
5. Ax= and Bx=
6. Ax= and Bx=
7. Ax= , Bx= and Cx=
8. Ax= , Bx= and Cx=

Question#3:

Solution:

1. Ax =
2. Ax = and Cx =
3. Ax = , Cx = and Dx=
4. Ax = , Cx = and Dx=
5. Ax = , Cx = and Dx=
6. Ax = , Cx = and Dx=
7. Ax = , Cx = and Dx=
8. Ax = , Bx= , Cx = and Dx=
9. Ax = , Bx= , Cx = and Dx=

Task#2: Instruction Groups: (04


marks)

Question: Explain and differentiate the four instruction groups of the assembly language in which
instructions have been categorized i.e.

1. Data Movement Instructions


2. Arithmetic/Logic Instructions
3. Program Control Group Instructions
4. Special Group Instructions

Page 3 of 4
Solution: Lecture “8IntroToAssemblyLanguageInstructionGroups”

Page 4 of 4

You might also like