Professional Documents
Culture Documents
Practical Record
Semester IV
CERTIFICATE
Date:
1. Vision and Mission of the Institute and Programme
VISION
To become a pace-setting centre of excellence believing in three
universal values namely Synergy, Trust and Passion, with zeal to serve the Nation in
the global scenario.
MISSION
To dedicate ourselves to the highest standard of technical education
& research in core & emerging engineering disciplines
and strive for the overall personality development of students
so as to nurture not only quintessential technocrats
but also responsible citizens.
VISION
To ensure that the world saves time and other depletable resources and free it from
complexity by providing efficient computing services.
MISSION
To dedicate ourselves to the highest standard by providing knowledge, skills and
wisdom to the incumbent by imparting value based education to enable them to solve
complex system by simple algorithms and to make them innovative, research oriented
to serve the global society, while imbibing highest ethical values.
2. Program educational objective (PEO’s), program outcomes (PO’s) and
Program Specific Outcomes (PSO’s)
Program educational objective (PEO’s)
PE01. Preparation: To prepare students for successful careers in software industry that meet the
needs of Indian and multinational companies or to excel in Higher studies.
PEO2. Core competence: To develop the ability among students to synthesize data and technical
concepts for software design and development.
PEO3. Breadth: To inculcate in students professional and ethical attitude, effective
communication skills, teamwork skills, multidisciplinary approach and an ability to relate
engineering issues to broader social context.
PEO4. Professionalism: To provide students with a sound foundation in the mathematical,
scientific and computer engineering fundamentals required to solve engineering problems and
also pursue higher studies.
PEO5. Learning Environment: To promote student with an academic environment aware of
excellence, leadership, written ethical codes and guidelines and the life-long learning needed for a
successful professional career.
Text Book:
1. A. K. Ray & K. M. Bhurchandi: Advanced Microprocessors & Peripherals, Third Edition (TMH).
2. Raj Kamal: Internet of Things, Architecture and Design Principals, McGraw Hill Education (India)
Private Limited
Reference Books:
1. W. A. Triebel& Avatar Singh: The 8088/8086 Microprocessors (4e) (PHI /Pearson Education)
2. Liu & Gibson: The 8088/8086 Microprocessor Architecture Programming and Interface (6/e) (PHI)
4KS04.1 2 2 3 2 2 - - - - - 2 2
4KS04.2 3 2 2 2 2 - - - - - 2 2
4KS04.3 1 2 3 1 2 - - - - - 2 3
4KS04.4 3 2 1 2 2 - - - - - 2 1
4KS04.5 2 2 3 2 1 - - - - - 2 1
4KS04.6 2 2 3 2 2 - - - - - 2 3
4KS08.1 3 2 3 2 2 - - - - - 2 3
4KS04.1 2 2
4KS04.2 3 3
4KS04.3 2 2
4KS04.4 2 3
4KS04.5 3 3
4KS04.6 3 1
4KS08.1 3 1
a. Attendance (05 Marks): These 05 marks will be given for the regularity of a student. If
the student is present on the scheduled day, he / she will be awarded 05 marks.
b. Competency (05 Marks): Here the basic aim is to check competency of the student. The
skill to interprets the aim of the practical and provide solution for the same. Here
expectation from the student is to improvise the existing solution, and the given
modification. The marks will be given according to the level of improvement made in the
practical.
c. Performance (05 Marks): Here the basic aim is to check whether the student has
developed the skill to write down the code on his own, and compile / debug. If a student
correctly executes the practical on the scheduled day within the allocated time; he / she
will be awarded full marks. Otherwise, marks will be given according to the level of
completion / execution of practical.
d. Viva-Voce (05 Marks): These 05 marks will be totally based on the performance in
vivavoce. There shall be viva-voce on the completion of each practical in the same
practical session. The student shall get the record checked before next practical.
5. List of Practical’s
Sr. Page
Name of Practical Date Remarks
No. No.
• Study of TASM Assembler with basic commands and
directories.
1
• Write program to read or write data from memory to
understand addressing modes of 8086.
• Implement Arithmetic Group of Instructions of 8086 on
a series of data using Assembly Language.
2
• Perform addition and subtraction on 10 consecutive
numbers.
• Use Mul instruction to find a factorial of a given
3 number.
• Find mean of N numbers using Div instruction.
Apply Shift and Rotate Instructions on given numbers to
4 identify the logical arrangement of bits.
Find 31AX-7BX+BX/16.
Verify that whether given Eight bits numbers are
5 Positive or Negative using Logical Group of
Instructions.
WAP to transfer N bytes of block starting from address
1000H in the memory to another block of memory
location at an offset address 2000H. Assume both the
6 blocks are available in same data segment that’s starting
point, is define by the data segment value C000H. Write
above program by making use of branch and loop
instructions.
• Define procedure SQUARE to find square of
numbers present in the array. Take the Ten numbers
from the user in an array and call SQUARE
procedure to find square of these numbers.
7
• Write macros CUBE to find cube of numbers present
in the array. Take the Ten numbers from the user in
an array and call CUBE macro to find cube of these
numbers.
Find out the Length of string given by user. Write a
8 procedure to take string from the user and then write a
procedure to find the length of the string.
PALINDROME is the procedure that finds out whether
the string is palindrome or not. Take the string from the
9
user and check the entered string is palindrome or not
using PALINDROME procedure.
Practical No. 1 Title:- TASM Assembler Installation
Aim: Study of TASM Assembler with basic commands and directories.
Write program to read or write data from memory to understand addressing modes of 8086.
Objective:
Students will learn about TASM Assembler and able to set platform required for TASM.
.code
Objective:
Students will learn about arithmetic instruction set and they will solve problem using suitable
instructions.
The INC instruction is used for incrementing an operand by one. It works on a single operand
that can be either in a register or in memory.
Working of AAA:-
AAA (ASCII ADJUST FOR ADDITION) Numerical data coming into a computer from a
terminal is usually in ASCII code. In this code, the numbers 0 to 9 are represented by the
ASCII codes 30H to 39H. The 8086 allows you to add the ASCII codes for two decimal
digits without masking off the “3” in the upper nibble of each. After the addition, the AAA
instruction is used to make sure the result is the correct unpacked BCD.
Let AL = 0011 0101 (ASCII 5), and BL = 0011 1001 (ASCII 9)
ADD AL, BL AL = 0110 1110 (6EH, which is incorrect BCD)
AAA AL = 0000 0100 (unpacked BCD 4) CF
= 1 indicates answer is 14 decimal.
The AAA instruction works only on the AL register. The AAA instruction updates AF and
CF; but OF, PF, SF and ZF are left undefined.
DEC: Decrement
The decrement instruction subtracts 1 from the contents of the specified register or memory
location.
Ex.
DEC AX
DEC [5000h]
AAS: ASCII adjust AL after subtraction
AAS converts the result of the subtraction of two valid unpacked BCD digits to a single valid
BCD number and takes the AL register as an implicit operand. The two operands of the
subtraction must have its lower 4 bit contain number in the range from 0 to 9 .The AAS
instruction then adjust AL so that it contain a correct BCD digit. This instruction corrects the
result in AL register after subtracting two unpacked ASCII operands. The result is in
unpacked decimal format. The procedure is similar to AAA instruction except for the
subtraction of 06 from AL. Sample Viva Questions:- 1) What is TASM?
2) What is the difference between ADD & ADC?
3) What is the instruction syntax of AAA, SBB?
4) What is INC?
5) What is the difference between 8086 & 8085?
6) Compare TASM with Debug?
7) Who is the developer of TASM?
8) What is logical address?
9) What is physical address?
10) What is meant by memory address generation scheme?
(Space for program, Output, Conclusion & Viva Answers)
output:
Program:
model
small .co
de start:
mov
al,0b2h
mov
bl,80h
sub al,bl
mov
bl,52h
mov
cl,0b0h
sbb bl,cl
dec bl
mov
al,55h
mov
bl,49h
sub al,bl
das;
mov
ah,4ch
output:
Calculation:
program :
.model small
.data
array db
80h,05h,0b6h,0d4h,32h
result db 0; .code start:
mov
ax,@data;
mov ds,ax;
mov SI,offset
array mov al,
[si] add al,
[si+1] adc al,
[si+2] adc al,
[si+3] adc al,
[si+4] mov
result ,al
mov ah,4ch
output:
Calculation:
end start
Output:
Objective:
Students will learn about multiplication and division instruction and they will solve problem
of two eight bits hexadecimal numbers using “mul” and “div” instruction.
S/W REQUIRED: TASM, DOSBOX
A) Multiply two Eight bits hexadecimal numbers using “mul” instruction.
Working of MUL:-
MUL – MUL Source This instruction multiplies an unsigned byte in some source with an
unsigned byte in AL register or an unsigned word in some source with an unsigned word in
AX register. The source can be a register or a memory location. When a byte is multiplied by
the content of AL, the result (product) is put in AX. When a word is multiplied by the content
of AX, the result is put in DX and AX registers. If the most significant byte of a 16-bit result
or the most significant word of a 32-bit result is 0, CF and OF will both be 0’s. AF, PF, SF
and ZF are undefined after a MUL instruction. If you want to multiply a byte with a word,
you must first move the byte to a word location such as an extended register and fill the upper
byte of the word with all 0’s. You cannot use the CBW instruction for this, because the CBW
instruction fills the upper byte with copies of the most significant bit of the lower byte.
MUL BH Multiply AL with BH; result in AX
MUL CX Multiply AX with CX; result high word in DX, low word in AX
Working of DIV:- DIV
– DIV Source
This instruction is used to divide an unsigned byte by a byte or to divide an unsigned word by
a word. When a bye is divided by a byte, the byte must be in the AL register. The divisor can
be in a register or a memory location. After the division, AL will contain the 8-bit quotient,
and AH will contain the 8-bit remainder. When a word is divided by a word, word must be in
AX. After the division, AX will contain the 16-bit quotient and DX will contain the 16-bit
remainder. If an attempt is made to divide by 0 or if the quotient is too large to fit in the
destination (greater than FFH / FFFFH), the 8086 will generate a type 0 interrupt. All flags
are undefined after a DIV instruction.
DIV BL Divide word in AL by byte in BL; Quotient in AL, remainder in AH
DIV CX Divide down word in AX by word in CX;Quotient in AX, and remainder in DX.
Sample Viva Questions:- 1) What is multiplication?
2) What is division?
3) What is the need of MUL instruction?
4) Which mnemonic that is placed before the arithmetic operation is performed?
5) What is IDIV?
6) Explain different registers used in 8086.
7) Give the advantages of general purpose registers?
8) Explain instruction format of MUL and DIV instruction?
9) Give the difference between IMUL and MUL?
10) Elaborate use of Pipeline architecture in 8086.
Objective:
Students will be able to apply Shift and Rotate instruction on given numbers.
Objective:
1. Students will be able to implement the programm for transfer the data from one memory
block to another block of memory location using branch instruction.
2. Students will define the different data transfer instructions.
S/W REQUIRED: TASM, DOSBOX
SI - source index register: o Can be used for pointer
addressing of data o Used as source in some string
processing instructions o Offset address relative to DS
DI - destination index register:
o Can be used for pointer addressing of data
o Used as destination in some string processing instructions
o Offset address relative to ES Sample Viva Questions:-