0% found this document useful (0 votes)
4 views

Exercise-11(Logic XY)

The document outlines an exercise for a microprocessors and microcontroller lab at Presidency University, Bengaluru, focusing on designing an assembly language program to multiply two values using a Logic Controller Interface. It includes specific assembly code and detailed steps for executing the interfacing exercises using MASM and a communication port. The final output of the program is specified as 2500AD.

Uploaded by

houndclegane860
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Exercise-11(Logic XY)

The document outlines an exercise for a microprocessors and microcontroller lab at Presidency University, Bengaluru, focusing on designing an assembly language program to multiply two values using a Logic Controller Interface. It includes specific assembly code and detailed steps for executing the interfacing exercises using MASM and a communication port. The final output of the program is specified as 2500AD.

Uploaded by

houndclegane860
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 5

PRESIDENCY UNIVERISTY, BENGALURU

School of Engineering

Microprocessors and Microcontroller Lab


CSE 254

IV Semester 2018-19
Exercise-11

Design and develop an ALP program using Logic


Controller Interface to Multiply (X*Y)
.OUTPUT 2500AD
PA EQU 0FFC0H
PB EQU 0FFC2H
CWR EQU 0FFC6H
CSEG SEGMENT
ASSUME CS:CSEG
ORG 0:5000H
MOV AL,82H
MOV DX,CWR
OUT DX,AL
MOV AX,00H
MOV BL,02
MOV DX,PB
IN AL,DX
MUL BL
OUTPUT: MOV DX,PA
OUT DX,AL
EXIT: MOV AH,4CH
INT 21H
CSEG ENDS
END
Steps to Execute Interfacing Exercises
1) C:\masm\> Edit filename.asm
2) C:\masm\> x8086 filename.asm
3) C:\masm\> LINK (Enter)
Input filename: Filename (Enter 5 times)
options: Type H (Enter)
4) Minimize Command prompt window
5) Launch Talk software
Goto options settings communication port (COM 2) OK
6) Goto options connect  press reset button on KIT
( KIT NAME APPEARS ON SCREEN)
7) GOTO FILE DOWNLOAD INTEL HEX FILE  SELECT
FILENAME.HEXOPEN (*# APPEARS ON SCREEN)
8) Type G
Type 5000 (Enter)
THANK YOU

You might also like