MP Lab Manual
MP Lab Manual
MP Lab Manual
LABORATORY MANUAL
Department
Of
Computer Engineering
Microprocessor
Year 2016-17 TE Semester :- V
Prepared By
Prof.V. N. Rane
Page 1
Sr No. Name of Experiments
1 ALP for 8086 for 8-bit/16-bit Addition and subtraction of two number
2 ALP for 8086 for 8-bit/16-bit multiplication and division of two number
5 ALP for 8086 to find largest and smallest number from given list.
Page 2
Introduction to MASM
C:\masm611\bin>EDIT sourcefilename.asm
Loading and Linking:
Run the assembler to create the .com or .exe file by typing the command at the
command prompt:
D:\masm611\bin>ML sourcefilename.asm.
Code View (CV) is the debugger that comes along with MASM. To launch code
view type “cv somefile.com” at the DOS prompt. The startup screen consists of
windows, each of which has its own name and purpose. The main screen of the
CodeView debugger is divided into windows. A good place to start for
debugging assembly language programs is with the following windows since
they are the ones most commonly used:
* The source text window
* The registers window
* The command window
The Source window contains the text of your program in assembly language and
the line numbers. When CodeView executes one command in your executable
module (.COM), it highlights the corresponding line in your source code in the
Source window. To execute one command, press the F8 or F10 key.
Page 3
The Register window reflects the current state of the registers and flags. The
registers are represented by name (AX, BX and so on) and their hexadecimal
values. The Register window is situated on the right side of the screen. This
window appears when you press the F2 key and disappears if you press it again.
The Command window is intended for controlling the debugging process. The
cursor is usually located in this window, indicating that you can type in
commands.
Instruction Template:
Example:
1. Type the following program using EDIT and save it with .asm extension.
.model small
.code
.startup
mov ax,50h
mov bx,20h
mov dx,80h
mov cx,05h
loop1: dec cx
jnz loop1
.exit
end
2. Assemble the program using “ML filename.asm” at the prompt.
3. Open code view debugger using “cv filename.exe”
4. Observe the above said windows in the startup screen of code view.
5. For line by line execution of the program press <F8> key and watch the
change in the content of the registers in the registers’ window.
Page 4
EXPERIMENT NO.1 &2
Page 5
C:\MASM611\BIN>debug pr1.exe
-p
AX=1426 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0003 NV UP EI PL NZ NA PO NC
1425:0003 8ED8 MOV DS,AX
-p
AX=1426 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0005 NV UP EI PL NZ NA PO NC
1425:0005 B010 MOV AL,10
-p
AX=1410 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0007 NV UP EI PL NZ NA PO NC
1425:0007 B312 MOV BL,12
-p
AX=1410 BX=0012 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0009 NV UP EI PL NZ NA PO NC
1425:0009 02C3 ADD AL,BL
-p
AX=1422 BX=0012 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000B NV UP EI PL NZ NA PE NC
1425:000B B44C MOV AH,4C
-p
AX=4C22 BX=0012 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000D NV UP EI PL NZ NA PE NC
1425:000D CD21 INT 21
-p
Program terminated normally
_____________________________2.Subtraction_______________________________
.model small
.data
.code
mov ax,@data
mov ds,ax
mov al,20h
mov bl,12h
sub al,bl
mov ah,4ch
INT 21h
End
---------------------------------------OUTPUT---------------------------------------------------------
C:\MASM611\BIN>debug pr2.exe
-p
AX=1426 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0003 NV UP EI PL NZ NA PO NC
1425:0003 8ED8 MOV DS,AX
Page 6
-p
AX=1426 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0005 NV UP EI PL NZ NA PO NC
1425:0005 B020 MOV AL,20
-p
AX=1420 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0007 NV UP EI PL NZ NA PO NC
1425:0007 B312 MOV BL,12
-p
AX=1420 BX=0012 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0009 NV UP EI PL NZ NA PO NC
1425:0009 2AC3 SUB AL,BL
-p
AX=140E BX=0012 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000B NV UP EI PL NZ AC PO NC
1425:000B B44C MOV AH,4C
-p
AX=4C0E BX=0012 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000D NV UP EI PL NZ AC PO NC
1425:000D CD21 INT 21
-p
Program terminated normally
_____________________________3.Multiplication_____________________________
.model small
.data
.code
mov ax,@data
mov ds,ax
mov al,10h
mov bl,10h
mul bl
mov ah,4ch
INT 21h
End
---------------------------------OUTPUT--------------------------------------------------------------
C:\MASM611\BIN>debug pr3.exe
-p
AX=1426 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0003 NV UP EI PL NZ NA PO NC
1425:0003 8ED8 MOV DS,AX
-p
AX=1426 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0005 NV UP EI PL NZ NA PO NC
1425:0005 B010 MOV AL,10
-p
Page 7
AX=1410 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0007 NV UP EI PL NZ NA PO NC
1425:0007 B310 MOV BL,10
-p
AX=1410 BX=0010 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0009 NV UP EI PL NZ NA PO NC
1425:0009 F6E3 MUL BL
-p
AX=0100 BX=0010 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000B OV UP EI PL NZ NA PE CY
1425:000B B44C MOV AH,4C
-p
AX=4C00 BX=0010 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000D OV UP EI PL NZ NA PE CY
1425:000D CD21 INT 21
-p
Program terminated normally
____________________________4.Divison____________________________________
.model small
.data
.code
mov ax,@data
mov ds,ax
mov ax,10h
mov bx,5h
div bx
mov ah,4ch
INT 21h
end
------------------------------------OUTPUT------------------------------------------------------------
C:\MASM611\BIN>debug pr4.exe
-p
AX=1426 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0003 NV UP EI PL NZ NA PO NC
1425:0003 8ED8 MOV DS,AX
-p
AX=1426 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0005 NV UP EI PL NZ NA PO NC
1425:0005 B81000 MOV AX,0010
-p
AX=0010 BX=0000 CX=0011 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0008 NV UP EI PL NZ NA PO NC
1425:0008 BB0500 MOV BX,0005
-p
AX=0010 BX=0005 CX=0011 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
Page 8
DS=1426 ES=1415 SS=1425 CS=1425 IP=000B NV UP EI PL NZ NA PO NC
1425:000B F7F3 DIV BX
-p
AX=0003 BX=0005 CX=0011 DX=0001 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000D NV UP EI PL NZ NA PO NC
1425:000D B44C MOV AH,4C
-p
AX=4C03 BX=0005 CX=0011 DX=0001 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PO NC
1425:000F CD21 INT 21
-p
Program terminated normally
Page 9
EXPERIMENT NO.3
.model small
.data
.code
mov ax,@data
mov ds,ax
mov cx,0005h
mov ax,0000h
mov bx,0001h
up: add ax,bx
xchg ax,bx
dec cx
jnz up
mov ah,4ch
int 21h
end
-----------------------------------OUTPUT-----------------------------------------------------------
C:\MASM611\BIN>link pr8.obj
C:\MASM611\BIN>debug pr8.exe
-p
AX=1426 BX=0000 CX=0018 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0003 NV UP EI PL NZ NA PO NC
1425:0003 8ED8 MOV DS,AX
-p
AX=1426 BX=0000 CX=0018 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0005 NV UP EI PL NZ NA PO NC
1425:0005 B90500 MOV CX,0005
-p
AX=1426 BX=0000 CX=0005 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0008 NV UP EI PL NZ NA PO NC
1425:0008 B80000 MOV AX,0000
-p
AX=0000 BX=0000 CX=0005 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000B NV UP EI PL NZ NA PO NC
1425:000B BB0100 MOV BX,0001
-p
AX=0000 BX=0001 CX=0005 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000E NV UP EI PL NZ NA PO NC
Page 10
1425:000E 03C3 ADD AX,BX
-p
AX=0001 BX=0001 CX=0005 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0010 NV UP EI PL NZ NA PO NC
1425:0010 93 XCHG BX,AX
-p
AX=0001 BX=0001 CX=0005 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0011 NV UP EI PL NZ NA PO NC
1425:0011 49 DEC CX
-p
AX=0001 BX=0001 CX=0004 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI PL NZ NA PO NC
1425:0012 75FA JNZ 000E
-p
AX=0001 BX=0001 CX=0004 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000E NV UP EI PL NZ NA PO NC
1425:000E 03C3 ADD AX,BX
-p
AX=0002 BX=0001 CX=0004 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0010 NV UP EI PL NZ NA PO NC
1425:0010 93 XCHG BX,AX
-p
AX=0001 BX=0002 CX=0004 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0011 NV UP EI PL NZ NA PO NC
1425:0011 49 DEC CX
-p
AX=0001 BX=0002 CX=0003 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI PL NZ NA PE NC
1425:0012 75FA JNZ 000E
-p
AX=0001 BX=0002 CX=0003 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000E NV UP EI PL NZ NA PE NC
1425:000E 03C3 ADD AX,BX
-p
AX=0003 BX=0002 CX=0003 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0010 NV UP EI PL NZ NA PE NC
1425:0010 93 XCHG BX,AX
-p
AX=0002 BX=0003 CX=0003 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0011 NV UP EI PL NZ NA PE NC
1425:0011 49 DEC CX
-p
AX=0002 BX=0003 CX=0002 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI PL NZ NA PO NC
1425:0012 75FA JNZ 000E
Page 11
-p
AX=0002 BX=0003 CX=0002 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000E NV UP EI PL NZ NA PO NC
1425:000E 03C3 ADD AX,BX
-p
AX=0005 BX=0003 CX=0002 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0010 NV UP EI PL NZ NA PE NC
1425:0010 93 XCHG BX,AX
-p
AX=0003 BX=0005 CX=0002 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0011 NV UP EI PL NZ NA PE NC
1425:0011 49 DEC CX
-p
AX=0003 BX=0005 CX=0001 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI PL NZ NA PO NC
1425:0012 75FA JNZ 000E
-p
AX=0003 BX=0005 CX=0001 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=000E NV UP EI PL NZ NA PO NC
1425:000E 03C3 ADD AX,BX
-p
AX=0008 BX=0005 CX=0001 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0010 NV UP EI PL NZ NA PO NC
1425:0010 93 XCHG BX,AX
-p
AX=0005 BX=0008 CX=0001 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0011 NV UP EI PL NZ NA PO NC
1425:0011 49 DEC CX
-p
AX=0005 BX=0008 CX=0000 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI PL ZR NA PE NC
1425:0012 75FA JNZ 000E
-p
AX=0005 BX=0008 CX=0000 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0014 NV UP EI PL ZR NA PE NC
1425:0014 B44C MOV AH,4C
-p
AX=4C05 BX=0008 CX=0000 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1426 ES=1415 SS=1425 CS=1425 IP=0016 NV UP EI PL ZR NA PE NC
1425:0016 CD21 INT 21
-p
Program terminated normally
Page 12
EXPERIMENT NO:-4
.model small
.data
.code
mov ax,@data
mov ax,ds
mov ah,00h
mov al,01h
mov cl,04h
up:MUL cl
DEC cl
JNZ up
mov ah,4ch
INT 21h
end
---------------------------------OUTPUT------------------------------------------------
C:\MASM611\BIN>ml pr5.asm
Microsoft (R) Macro Assembler Version 6.11
Copyright (C) Microsoft Corp 1981-1993. All rights reserved.
Assembling: pr5.asm
Microsoft (R) Segmented Executable Linker Version 5.31.009 Jul 13 1992
Copyright (C) Microsoft Corp 1984-1992. All rights reserved.
Object Modules [.obj]: pr5.obj
Run File [pr5.exe]: "pr5.exe"
List File [nul.map]: NUL
Libraries [.lib]:
Definitions File [nul.def]:
LINK : warning L4021: no stack segment
LINK : warning L4038: program has no starting address
C:\MASM611\BIN>link pr5.obj
C:\MASM611\BIN>debug pr5.exe
-p
AX=1426 BX=0000 CX=0015 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0003 NV UP EI PL NZ NA PO NC
1425:0003 8CD8 MOV AX,DS
Page 13
-p
AX=1415 BX=0000 CX=0015 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0005 NV UP EI PL NZ NA PO NC
1425:0005 B400 MOV AH,00
-p
AX=0015 BX=0000 CX=0015 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0007 NV UP EI PL NZ NA PO NC
1425:0007 B001 MOV AL,01
-p
AX=0001 BX=0000 CX=0015 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0009 NV UP EI PL NZ NA PO NC
1425:0009 B104 MOV CL,04
-p
AX=0001 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000B NV UP EI PL NZ NA PO NC
1425:000B F6E1 MUL CL
-p
AX=0004 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000D NV UP EI PL NZ NA PO NC
1425:000D FEC9 DEC CL
-p
AX=0004 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PE NC
1425:000F 75FA JNZ 000B
-p
AX=0004 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000B NV UP EI PL NZ NA PE NC
1425:000B F6E1 MUL CL
-p
AX=000C BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000D NV UP EI PL NZ NA PE NC
1425:000D FEC9 DEC CL
-p
AX=000C BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PO NC
1425:000F 75FA JNZ 000B
-p
AX=000C BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000B NV UP EI PL NZ NA PO NC
1425:000B F6E1 MUL CL
-p
AX=0018 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000D NV UP EI PL NZ NA PE NC
1425:000D FEC9 DEC CL
-p
Page 14
AX=0018 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PO NC
1425:000F 75FA JNZ 000B
-p
AX=0018 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000B NV UP EI PL NZ NA PO NC
1425:000B F6E1 MUL CL
-p
AX=0018 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000D NV UP EI PL NZ NA PE NC
1425:000D FEC9 DEC CL
-p
AX=0018 BX=0000 CX=0000 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL ZR NA PE NC
1425:000F 75FA JNZ 000B
-p
AX=0018 BX=0000 CX=0000 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0011 NV UP EI PL ZR NA PE NC
1425:0011 B44C MOV AH,4C
-p
AX=4C18 BX=0000 CX=0000 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0013 NV UP EI PL ZR NA PE NC
1425:0013 CD21 INT 21
-p
Program terminated normally
Page 15
EXPERIMENT NO.5
Aim: Implementation of ALP to find out largest and smallest no. from given list.
____________________________1.Largest_______________________________________
.model small
.data
x dw 0010h,0020h,0030h,0040h,0050h
.code
mov ax,@data
mov ds,ax
mov cx,05h
lea si,x
mov ax,[si]
dec cx
up: cmp ax,[si+2]
ja down
mov ax,[si+2]
down: add si,02h
dec cx
jnz up
mov ah,4ch
int 21h
end
---------------------------------------OUTPUT--------------------------------------------------------
C:\MASM611\BIN>debug pr6.exe
-p
AX=1427 BX=0000 CX=002C DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0003 NV UP EI PL NZ NA PO NC
1425:0003 8ED8 MOV DS,AX
-p
AX=1427 BX=0000 CX=002C DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0005 NV UP EI PL NZ NA PO NC
1425:0005 B90500 MOV CX,0005
-p
AX=1427 BX=0000 CX=0005 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0008 NV UP EI PL NZ NA PO NC
1425:0008 8D360200 LEA SI,[0002] DS:0002=0010
-p
AX=1427 BX=0000 CX=0005 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=000C NV UP EI PL NZ NA PO NC
1425:000C 8B04 MOV AX,[SI] DS:0002=0010
-p
AX=0010 BX=0000 CX=0005 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
Page 16
DS=1427 ES=1415 SS=1425 CS=1425 IP=000E NV UP EI PL NZ NA PO NC
1425:000E 49 DEC CX
-p
AX=0010 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PO NC
1425:000F 3B4402 CMP AX,[SI+02] DS:0004=0020
-p
AX=0010 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI NG NZ NA PE CY
1425:0012 7703 JA 0017
-p
AX=0010 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0014 NV UP EI NG NZ NA PE CY
1425:0014 8B4402 MOV AX,[SI+02] DS:0004=0020
-p
AX=0020 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0017 NV UP EI NG NZ NA PE CY
1425:0017 83C602 ADD SI,+02
-p
AX=0020 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0004 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001A NV UP EI PL NZ NA PO NC
1425:001A 49 DEC CX
-p
AX=0020 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0004 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001B NV UP EI PL NZ NA PE NC
1425:001B 75F2 JNZ 000F
-p
AX=0020 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0004 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PE NC
1425:000F 3B4402 CMP AX,[SI+02] DS:0006=0030
-p
AX=0020 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0004 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI NG NZ NA PE CY
1425:0012 7703 JA 0017
-p
AX=0020 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0004 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0014 NV UP EI NG NZ NA PE CY
1425:0014 8B4402 MOV AX,[SI+02] DS:0006=0030
-p
AX=0030 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0004 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0017 NV UP EI NG NZ NA PE CY
1425:0017 83C602 ADD SI,+02
-p
AX=0030 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0006 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001A NV UP EI PL NZ NA PE NC
Page 17
1425:001A 49 DEC CX
-p
AX=0030 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0006 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001B NV UP EI PL NZ NA PO NC
1425:001B 75F2 JNZ 000F
-p
AX=0030 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0006 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PO NC
1425:000F 3B4402 CMP AX,[SI+02] DS:0008=0040
-p
AX=0030 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0006 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI NG NZ NA PE CY
1425:0012 7703 JA 0017
-p
AX=0030 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0006 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0014 NV UP EI NG NZ NA PE CY
1425:0014 8B4402 MOV AX,[SI+02] DS:0008=0040
-p
AX=0040 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0006 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0017 NV UP EI NG NZ NA PE CY
1425:0017 83C602 ADD SI,+02
-p
AX=0040 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0008 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001A NV UP EI PL NZ NA PO NC
1425:001A 49 DEC CX
-p
AX=0040 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0008 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001B NV UP EI PL NZ NA PO NC
1425:001B 75F2 JNZ 000F
-p
AX=0040 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0008 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PO NC
1425:000F 3B4402 CMP AX,[SI+02] DS:000A=0050
-p
AX=0040 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0008 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI NG NZ NA PE CY
1425:0012 7703 JA 0017
-p
AX=0040 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0008 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0014 NV UP EI NG NZ NA PE CY
1425:0014 8B4402 MOV AX,[SI+02] DS:000A=0050
-p
AX=0050 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0008 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0017 NV UP EI NG NZ NA PE CY
1425:0017 83C602 ADD SI,+02
Page 18
-p
AX=0050 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=000A DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001A NV UP EI PL NZ NA PE NC
1425:001A 49 DEC CX
-p
AX=0050 BX=0000 CX=0000 DX=0000 SP=0000 BP=0000 SI=000A DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001B NV UP EI PL ZR NA PE NC
1425:001B 75F2 JNZ 000F
-p
AX=0050 BX=0000 CX=0000 DX=0000 SP=0000 BP=0000 SI=000A DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001D NV UP EI PL ZR NA PE NC
1425:001D B44C MOV AH,4C
-p
AX=4C50 BX=0000 CX=0000 DX=0000 SP=0000 BP=0000 SI=000A DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001F NV UP EI PL ZR NA PE NC
1425:001F CD21 INT 21
-p
Program terminated normally
____________________________2.Smallest_____________________________________
.model small
.data
x dw 0070h,0020h,0030h,0080h,0050h
.code
mov ax,@data
mov ds,ax
mov cx,05h
lea si,x
mov ax,[si]
dec cx
up: cmp ax,[si+2]
jna down
mov ax,[si+2]
down: add si,02h
dec cx
jnz up
mov ah,4ch
int 21h
end
----------------------------------OUTPUT---------------------------------------------------------------
C:\MASM611\BIN>debug pr7.exe
-p
AX=1427 BX=0000 CX=002C DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1415 ES=1415 SS=1425 CS=1425 IP=0003 NV UP EI PL NZ NA PO NC
1425:0003 8ED8 MOV DS,AX
-p
Page 19
AX=1427 BX=0000 CX=002C DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0005 NV UP EI PL NZ NA PO NC
1425:0005 B90500 MOV CX,0005
-p
AX=1427 BX=0000 CX=0005 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0008 NV UP EI PL NZ NA PO NC
1425:0008 8D360200 LEA SI,[0002] DS:0002=0070
-p
AX=1427 BX=0000 CX=0005 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=000C NV UP EI PL NZ NA PO NC
1425:000C 8B04 MOV AX,[SI] DS:0002=0070
-p
AX=0070 BX=0000 CX=0005 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=000E NV UP EI PL NZ NA PO NC
1425:000E 49 DEC CX
-p
AX=0070 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PO NC
1425:000F 3B4402 CMP AX,[SI+02] DS:0004=0020
-p
AX=0070 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI PL NZ NA PE NC
1425:0012 7603 JBE 0017
-p
AX=0070 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0014 NV UP EI PL NZ NA PE NC
1425:0014 8B4402 MOV AX,[SI+02] DS:0004=0020
-p
AX=0020 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0002 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0017 NV UP EI PL NZ NA PE NC
1425:0017 83C602 ADD SI,+02
-p
AX=0020 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0004 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001A NV UP EI PL NZ NA PO NC
1425:001A 49 DEC CX
-p
AX=0020 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0004 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001B NV UP EI PL NZ NA PE NC
1425:001B 75F2 JNZ 000F
-p
AX=0020 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0004 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PE NC
1425:000F 3B4402 CMP AX,[SI+02] DS:0006=0030
-p
AX=0020 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0004 DI=0000
Page 20
DS=1427 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI NG NZ NA PE CY
1425:0012 7603 JBE 0017
-p
AX=0020 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0004 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0017 NV UP EI NG NZ NA PE CY
1425:0017 83C602 ADD SI,+02
-p
AX=0020 BX=0000 CX=0003 DX=0000 SP=0000 BP=0000 SI=0006 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001A NV UP EI PL NZ NA PE NC
1425:001A 49 DEC CX
-p
AX=0020 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0006 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001B NV UP EI PL NZ NA PO NC
1425:001B 75F2 JNZ 000F
-p
AX=0020 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0006 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PO NC
1425:000F 3B4402 CMP AX,[SI+02] DS:0008=0080
-p
AX=0020 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0006 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI NG NZ NA PE CY
1425:0012 7603 JBE 0017
-p
AX=0020 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0006 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0017 NV UP EI NG NZ NA PE CY
1425:0017 83C602 ADD SI,+02
-p
AX=0020 BX=0000 CX=0002 DX=0000 SP=0000 BP=0000 SI=0008 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001A NV UP EI PL NZ NA PO NC
1425:001A 49 DEC CX
-p
AX=0020 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0008 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001B NV UP EI PL NZ NA PO NC
1425:001B 75F2 JNZ 000F
-p
AX=0020 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0008 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=000F NV UP EI PL NZ NA PO NC
1425:000F 3B4402 CMP AX,[SI+02] DS:000A=0050
-p
AX=0020 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0008 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0012 NV UP EI NG NZ NA PO CY
1425:0012 7603 JBE 0017
-p
AX=0020 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=0008 DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=0017 NV UP EI NG NZ NA PO CY
Page 21
1425:0017 83C602 ADD SI,+02
-p
AX=0020 BX=0000 CX=0001 DX=0000 SP=0000 BP=0000 SI=000A DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001A NV UP EI PL NZ NA PE NC
1425:001A 49 DEC CX
-p
AX=0020 BX=0000 CX=0000 DX=0000 SP=0000 BP=0000 SI=000A DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001B NV UP EI PL ZR NA PE NC
1425:001B 75F2 JNZ 000F
-p
AX=0020 BX=0000 CX=0000 DX=0000 SP=0000 BP=0000 SI=000A DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001D NV UP EI PL ZR NA PE NC
1425:001D B44C MOV AH,4C
-p
AX=4C20 BX=0000 CX=0000 DX=0000 SP=0000 BP=0000 SI=000A DI=0000
DS=1427 ES=1415 SS=1425 CS=1425 IP=001F NV UP EI PL ZR NA PE NC
1425:001F CD21 INT 21
-p
Program terminated normally
Conclusion : Thus we have studied ALP for largest and smallest number in the
given list.
Page 22
EXPERIMENT NO:-6
B:ADD al,[SI]
INC SI
DEC Cx
JNZ B
MOV cl,04h
div cl
MOV ah,4ch
INT 21h
end
----------------------------------OUTPUT-----------------------------------------
Page 23
-t
Page 24
DS=1428 ES=1417 SS=1427 CS=1427 IP=0013 NV UP EI PL NZ NA PO NC
1427:0013 75FA JNZ 000F
-t
Page 25
AX=4C20 BX=0000 CX=0004 DX=0000 SP=0000 BP=0000 SI=0012 DI=0000
DS=1428 ES=1417 SS=1427 CS=1427 IP=001B NV UP EI PL ZR NA PE NC
1427:001B CD21 INT 21
-t
Page 26
EXPERIMENT NO:-7
Page 27
Copyright (C) Microsoft Corp 1984-1992. All rights reserved.
Object Modules [.obj]: pr12.obj
Run File [pr12.exe]: "pr12.exe"
List File [nul.map]: NUL
Libraries [.lib]:
Definitions File [nul.def]:
LINK : warning L4021: no stack segment
LINK : warning L4038: program has no starting address
C:\MASM611\BIN>debug pr12.exe
-g
Page 28
EXPERIMENT NO:-8
.model small
.data
M1 DB 10, 13, 'ENTER THE STRING : $'
M2 DB 10, 13, 'THE LOWERCASE STRING : $'
BUFF DB 80
DB 0
DB 80 DUP (0)
.code
.startup
MOV AH, 09H ; Display message1
MOV DX, OFFSET M1
INT 21H
MOV AH, 0AH ; input the string
LEA DX, BUFF
INT 21H
MOV AH, 09H
MOV DX, OFFSET M2 ; Display message M2
INT 21H
MOV CH, 00H
MOV CL, BUFF + 1 ; Take character count in DI
LEA BX, BUFF+2
MOV DI, 00H
BACK : MOV DL, [BX + DI] ; point to the first character
ADD DL, 20H ; convert to lowercase
MOV AH, 02H ;
INT 21H ; Display the character
INC DI ;
DEC CX ; Decrement character counter
JNZ BACK ; check if zero
MOV AH, 4CH ; Return to DOS
INT 21H
.exit
END
Page 29
EXPERIMENT NO:- 9&10
SYSTEM SPECIFICATIONS
Page 30
SYSTEM CAPABILITIES
Keyboard Mode :
SYSTEM INSTALLATION
Page 31
OPERATING COMMANDS :
( M86-02 L)
ENTER RETURN KEY..
(M 86-02 L) 7FFF
> A , D, F, G, I, M, P, T, U.
COMMAND DESCRIPTION
A –Assemble :
This command is used to convert the input Assemble Language to the
machine Language in the memory.Once under this command,first set the
address which is similar to the command “D” followed by an Enter or an
Arrow Down key to go to a new step.However,only a maximum of 35
words are allowed for input.
The following are some useful keys used to move the cursor around:
SHIFT
+ F5
…..Delete the character at the cursor.
SHIFT F6
+ …..Erase the content.
F5
…………. Leave a space at the cursor.
Page 32
[M 86-02 L].. 7FFF
> A , D, F, G, I, M, P, T, U.
[M 86-02 L] ..7FFF
A
Assembly language can be input at this time.
1. Only contains the Effective address but the Segment base in
included A 400
2. Input includes the segment base and the Effective address A
0000:400
3. Totally depends on the built in segment base and Effective address
A
If one of the above is used 0400 will appear on the screen and ready for
input data. “A” and “U” are the same command .an ARROW UP sign can
be used to check the earlier procedure.F6 is used to delete the input and
proceed to “U” Unassemble F7 is used to proceed to another command.
Syntax as follows :
Page 33
If press the Enter or the ARROW DOWN key after specifying the
address,the memory will display the data.Press ARROW UP key will
Allowed the addrfess to subtract 8 and store in the memory as a whole
Syntax is as followed :
Segment Base
Effective Address
Content of Address ,a
Total of 8 bytes
0000:0400 B3 C0 9A
78 F 0 00 F0 BB
0000:0400 B3 C0 9A
78 F 0 00 F0 BB
The above data shown at the location 400 are the arbitrary data’s.
G , I , M , T , U , F7 , P
Syntax
[ M 86 -02 L] . . 7 F F F
>A.D.F.G.I.M.P.T.U. Page 34
Once ‘F’ is entered the command can be proceeded.
[ M 86 -02 L] . . 7 F F F
F 0000:0400 0400 57
Data to be filled
Ending Position
Starting Position
Segment Base
SHIFT SHIFT
, + , , +
G , I , M , T , U , F , P
Page 35
Once the ‘GO’ command has been executed ,it will completely leave the
system and proceed to the user’s design.
Flowchart of G – Command
PROCEED
TO
A NEW
CS,DS,ES ADDRESS
FOLLOW REGISTERS FOR
INPUT THE INPUT HAVE THE
THE EXECUTION
OF THE STARTING BEGINS AT
START STARTING END
USER TO ADDRESS 0000:0309
ADDRESS SET THE IN THE (USER CAN
FLAGS SEGMENT SET A
BASE SEGMENT IN
THE
PROGRAM
I – Interrupt :
[ M 86 -02 L] . . 7 F F F
>A.D.F.G.I.M.P.T.U.
[ M 86 -02 L] . . 7 F F F
I N T P : 0 0 0 0 .0 0 0 0 . 0 0 0 0
Notes :
1.During interrupt setting ,the address alternation register has commands
like POP ,ES ,MOV DS,AS,etc. to execute with the next command.
Page 36
2.The program will be delayed for due to the fact that CPU has to send
Each command individually into the subprogram.
3.During the interruption the command GO would allow the program to
Execute until the next INTERRUPT.
M-Moving Data :
The command MOVE is used to move data in the memory from a
Specified address to another address by input the starting address ,the
ending address the desire address .A RETURN key is then used to execute
the changes.
SYNTAX :
The ‘M’ key allows the data to be moved to another address:
[ M 86 -02 L] . . 7 F F F
>A.D.F.G.I.M.P.T.U.
TARGET
SEGMENT BASE
DESTINATION ADDRESS
Page 37
P-Print :
This command allows the printer to print the output Connect the printer
With input/output system of 8255 (the connection is described at the back )
Before turning on the printer
[ M 86 -02 L] . . 7 F F F
>A.D.F.G.I.M.P.T.U.
By pressing ‘P’ Key will allow the following to show on the screen:
PRINTER ON !
>B . D .U.
Unaasemble
Dump
Buffer
If the printer is not connected at this time ,press key “P” so the LCD
would show
“PRINTER ERROR!” on the second line.
“D” command will allow the printer to print the machine code.
“U” command will allow the printer to print the assembly program.
“B” Command sends data of RAM directly to the printer without going
through any modification.
Page 38
T - Trace Program (an N –step designed command) :
U -Unassemble :
The UNASSEMBLE command decodes the value of a group memory
location mnemonics ,and display on the displayed.Once enter this command
,input the proper design address.The following is the correct way to input
address :
[ M 86 -02 L] . . 7 F F F
>A.D.F.G.I.M.P.T.U.
[ VTS-86/88 ] . . 7 F F F
U 400
OR
U 0 : 400
Starting address
1. The content of the Unassemble 0400 will start if only the starting
address is entered .The built-in segment base is used here if it is not
entered.
Page 39
2. The content of the Unassemble 0000:0400 will start if only the
starting address is entered with segment address as 0000:0400.
Machine code
0000 :0400 B0 30
MOV AL,30
Assembly Language
INTRODUCTION:
In most of the Microprocessor based system,certain Input
output devices are required for the man nad machine
communication.The various output devices used are
displays ,printer plotters etc.Seven segment displays are
used quite oftenly to display the information processed by
microprocessor.This Seven Segment Display Module is
based Shift Register Technique.
CIRCUIT DESCRIPTION :
Page 40
The data to be displayed is connected with PB0 bit of
8255 .To display 4 digits requires 32 bit data to end
through PB0 bit the required information will be
displayed in the Seven Segment.
HARDWARE INSTALLATION :
1.Connect IC Tester interfacing Module to 8255-I OF
8051/8085/8086 Trainer kit through 26 pin FRC Cable
2.Be sure about the direction of the cable i.e. Pin No.1
Of Module should to Pin No.1 of 8255 connector.
3.Connect +5V ,GND from the Trainer Kit (+5V & GND
Signals are available in the 25 & 26 pin of FRC 8255-I
Connector)
SOFTWARE INSTALLATION:
1.Enter the program from 2000 Location for 8085/8051
Kit/0400 for 8086 Kit/3000 for 8051 LCD kit and make
Sure that your program is entered properly before
Execution.
2.Execute your program from respective Location &
Observe the results.
Page 42