SlideShare ist ein Scribd-Unternehmen logo
1 von 5
SamiULLAH Section D 15B-145-EL
LAB TASK
.MODEL SMALL
.STACK 100H
.DATA
MENU DB
,0DH,0DH,0DH,0AH,"^^^^ENTER YOUR
CHOICE^^^^",0DH,0AH,
DB "PRESS 1 TO SHIFT
LEFT",0DH,0AH
DB "PRESS 2 TO SHIFT
RIGHT",0DH,0AH
DB "PRESS 3 ROTATE
LEFT",0DH,0AH
DB "PRESS 4 ROTATE
RIGHT",0DH,0AH
DB "PRESS E FOR EXIT",0DH,0AH
DB "PRESS R TO RETURN MEIN
MENU",0DH,0AH,'$'
NO1 DB ,0DH,0AH,"ENTER THE
NUMBER",0DH,0AH,'$'
NO2 DB ,0DH,0AH,"HOW MANY
TIMES",0DH,0AH,'$'
ANSWER DB
,0DH,0AH,"*****ANSWER*****
",0DH,0AH,'$'
EX DB ,0DH,0AH,"GOOD BYE AND
PLEASE DON'T COME NEXT
TIME",0DH,0AH,'$'
RESUME DB ,0DH,0AH,"DO YOU WANT
TO RESUME Y/N",0DH,0AH,'$'
VAL1 DB ?
VAL2 DB ?
VAL3 DB ?
SELECT DB ?
VAL DB ?
.CODE
.STARTUP
START:
MOV AH,09H
MOV DX,OFFSET NO1
INT 21H
MOV AH,01H
INT 21H
SUB AL,30H
MOV VAL2,AL
MOV BL,VAL2
MOV AH,09H
MOV DX,OFFSET NO2
INT 21H
MOV AH,01H
INT 21H
SUB AL,30H
MOV VAL3,AL
MOV CL,VAL3
MOV AH,09H
MOV DX,OFFSET MENU
INT 21H
MOV AH,01H
INT 21H
MOV SELECT,AL
MOV AL,SELECT
CMP AL,'1'
JE SHL1
CMP AL,'2'
JE SHR1
CMP AL,'3'
JE ROL1
CMP AL,'4'
JE ROR1
CMP AL,'E'
JE EX1
CMP AL,'R'
JMP START
SHL1:
SHL BL,CL
MOV VAL1,BL
MOV AH,09H
MOV DX,OFFSET ANSWER
INT 21H
SamiULLAH Section D 15B-145-EL
MOV AL,VAL1
ADD AL,30H
MOV AH,0EH
INT 10H
MOV AH,09H
MOV DX,OFFSET RESUME
INT 21H
MOV AH,01H
INT 21H
MOV VAL,AL
MOV AL,VAL
CMP AL,'Y'
JE START
CMP AL,'N'
JE EX1
SHR1:
SHR BL,CL
MOV VAL1,BL
MOV AH,09H
MOV DX,OFFSET ANSWER
INT 21H
MOV AL,VAL1
ADD AL,30H
MOV AH,0EH
INT 10H
MOV AH,09H
MOV DX,OFFSET RESUME
INT 21H
MOV AH,01H
INT 21H
MOV VAL,AL
MOV AL,VAL
CMP AL,'Y'
JE START
CMP AL,'N'
JE EX1
ROL1:
ROL BL,CL
MOV VAL1,BL
MOV AH,09H
MOV DX,OFFSET ANSWER
INT 21H
MOV AL,VAL1
ADD AL,30H
MOV AH,0EH
INT 10H
MOV AH,09H
MOV DX,OFFSET RESUME
INT 21H
MOV AH,01H
INT 21H
MOV VAL,AL
MOV AL,VAL
CMP AL,'Y'
JE START
CMP AL,'N'
JE EX1
ROR1:
ROR BL,CL
MOV VAL1,BL
MOV AH,09H
MOV DX,OFFSET ANSWER
INT 21H
MOV AL,VAL1
ADD AL,30H
MOV AH,0EH
INT 10H
MOV AH,09H
MOV DX,OFFSET RESUME
INT 21H
MOV AH,01H
INT 21H
MOV VAL,AL
MOV AL,VAL
SamiULLAH Section D 15B-145-EL
CMP AL,'Y'
JE START
CMP AL,'N'
JE EX1
EX1:
MOV AH,09H
MOV DX,OFFSET EX
INT 21H
.EXIT
END
OUTPUT
Shift Left
SamiULLAH Section D 15B-145-EL
Shift Right
Rotate Left
SamiULLAH Section D 15B-145-EL
Rotate Right

Weitere ähnliche Inhalte

Was ist angesagt?

Chap 8 The stack and introduction to procedures & Chapter 9 multiplication an...
Chap 8 The stack and introduction to procedures & Chapter 9 multiplication an...Chap 8 The stack and introduction to procedures & Chapter 9 multiplication an...
Chap 8 The stack and introduction to procedures & Chapter 9 multiplication an...warda aziz
 
Library Management Python, MySQL
Library Management Python, MySQLLibrary Management Python, MySQL
Library Management Python, MySQLDarshit Vaghasiya
 
Web Development Course: PHP lecture 1
Web Development Course: PHP lecture 1Web Development Course: PHP lecture 1
Web Development Course: PHP lecture 1Gheyath M. Othman
 
chapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionschapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionswarda aziz
 
Intel 8085 - Arrange an array of data in ascending order
Intel 8085  - Arrange an array of data in ascending orderIntel 8085  - Arrange an array of data in ascending order
Intel 8085 - Arrange an array of data in ascending orderDEPARTMENT OF PHYSICS
 
Library Management Project (computer science) class 12
Library Management Project (computer science) class 12Library Management Project (computer science) class 12
Library Management Project (computer science) class 12RithuJ
 
Introduction to ibm pc assembly language
Introduction to ibm pc assembly languageIntroduction to ibm pc assembly language
Introduction to ibm pc assembly languagewarda aziz
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)KushShah65
 
assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUEducation
 
Physics Investigatory project Class 12 Logic Gates
Physics Investigatory project Class 12 Logic GatesPhysics Investigatory project Class 12 Logic Gates
Physics Investigatory project Class 12 Logic GatesRaghav Rathi
 
Aggregate functions
Aggregate functionsAggregate functions
Aggregate functionssinhacp
 
Intel 8085 largest number in a data array
Intel   8085  largest number in a data arrayIntel   8085  largest number in a data array
Intel 8085 largest number in a data arrayDEPARTMENT OF PHYSICS
 

Was ist angesagt? (20)

MySQL for beginners
MySQL for beginnersMySQL for beginners
MySQL for beginners
 
Chapter 3 stored procedures
Chapter 3 stored proceduresChapter 3 stored procedures
Chapter 3 stored procedures
 
Chap 8 The stack and introduction to procedures & Chapter 9 multiplication an...
Chap 8 The stack and introduction to procedures & Chapter 9 multiplication an...Chap 8 The stack and introduction to procedures & Chapter 9 multiplication an...
Chap 8 The stack and introduction to procedures & Chapter 9 multiplication an...
 
MySql:Introduction
MySql:IntroductionMySql:Introduction
MySql:Introduction
 
Library Management Python, MySQL
Library Management Python, MySQLLibrary Management Python, MySQL
Library Management Python, MySQL
 
Web Development Course: PHP lecture 1
Web Development Course: PHP lecture 1Web Development Course: PHP lecture 1
Web Development Course: PHP lecture 1
 
chapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionschapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructions
 
Stack using Array
Stack using ArrayStack using Array
Stack using Array
 
Intel 8085 - Arrange an array of data in ascending order
Intel 8085  - Arrange an array of data in ascending orderIntel 8085  - Arrange an array of data in ascending order
Intel 8085 - Arrange an array of data in ascending order
 
Library Management Project (computer science) class 12
Library Management Project (computer science) class 12Library Management Project (computer science) class 12
Library Management Project (computer science) class 12
 
Introduction to ibm pc assembly language
Introduction to ibm pc assembly languageIntroduction to ibm pc assembly language
Introduction to ibm pc assembly language
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
SQL Basics
SQL BasicsSQL Basics
SQL Basics
 
Plsql lab mannual
Plsql lab mannualPlsql lab mannual
Plsql lab mannual
 
Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
 
SQL
SQLSQL
SQL
 
assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YU
 
Physics Investigatory project Class 12 Logic Gates
Physics Investigatory project Class 12 Logic GatesPhysics Investigatory project Class 12 Logic Gates
Physics Investigatory project Class 12 Logic Gates
 
Aggregate functions
Aggregate functionsAggregate functions
Aggregate functions
 
Intel 8085 largest number in a data array
Intel   8085  largest number in a data arrayIntel   8085  largest number in a data array
Intel 8085 largest number in a data array
 

Mehr von Sami Ullah

The Earliest Applications Of Linear Algebra
The Earliest Applications Of Linear AlgebraThe Earliest Applications Of Linear Algebra
The Earliest Applications Of Linear AlgebraSami Ullah
 
Equilibrium Temperature Distributions Application In Linear Algebra
Equilibrium Temperature Distributions Application In Linear AlgebraEquilibrium Temperature Distributions Application In Linear Algebra
Equilibrium Temperature Distributions Application In Linear AlgebraSami Ullah
 
Electrical Networks Application in linear algebra
Electrical Networks Application in linear algebraElectrical Networks Application in linear algebra
Electrical Networks Application in linear algebraSami Ullah
 
Applications of matrices in Real\Daily life
Applications of matrices in Real\Daily lifeApplications of matrices in Real\Daily life
Applications of matrices in Real\Daily lifeSami Ullah
 
cryptography Application of linear algebra
cryptography Application of linear algebra cryptography Application of linear algebra
cryptography Application of linear algebra Sami Ullah
 
Assembly Language Voltage Divider Bias Program 8086
Assembly Language Voltage Divider Bias Program 8086Assembly Language Voltage Divider Bias Program 8086
Assembly Language Voltage Divider Bias Program 8086Sami Ullah
 

Mehr von Sami Ullah (6)

The Earliest Applications Of Linear Algebra
The Earliest Applications Of Linear AlgebraThe Earliest Applications Of Linear Algebra
The Earliest Applications Of Linear Algebra
 
Equilibrium Temperature Distributions Application In Linear Algebra
Equilibrium Temperature Distributions Application In Linear AlgebraEquilibrium Temperature Distributions Application In Linear Algebra
Equilibrium Temperature Distributions Application In Linear Algebra
 
Electrical Networks Application in linear algebra
Electrical Networks Application in linear algebraElectrical Networks Application in linear algebra
Electrical Networks Application in linear algebra
 
Applications of matrices in Real\Daily life
Applications of matrices in Real\Daily lifeApplications of matrices in Real\Daily life
Applications of matrices in Real\Daily life
 
cryptography Application of linear algebra
cryptography Application of linear algebra cryptography Application of linear algebra
cryptography Application of linear algebra
 
Assembly Language Voltage Divider Bias Program 8086
Assembly Language Voltage Divider Bias Program 8086Assembly Language Voltage Divider Bias Program 8086
Assembly Language Voltage Divider Bias Program 8086
 

Kürzlich hochgeladen

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Kürzlich hochgeladen (20)

UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

ROL ROR SHL SHR Assembly Language Programmin 8086

  • 1. SamiULLAH Section D 15B-145-EL LAB TASK .MODEL SMALL .STACK 100H .DATA MENU DB ,0DH,0DH,0DH,0AH,"^^^^ENTER YOUR CHOICE^^^^",0DH,0AH, DB "PRESS 1 TO SHIFT LEFT",0DH,0AH DB "PRESS 2 TO SHIFT RIGHT",0DH,0AH DB "PRESS 3 ROTATE LEFT",0DH,0AH DB "PRESS 4 ROTATE RIGHT",0DH,0AH DB "PRESS E FOR EXIT",0DH,0AH DB "PRESS R TO RETURN MEIN MENU",0DH,0AH,'$' NO1 DB ,0DH,0AH,"ENTER THE NUMBER",0DH,0AH,'$' NO2 DB ,0DH,0AH,"HOW MANY TIMES",0DH,0AH,'$' ANSWER DB ,0DH,0AH,"*****ANSWER***** ",0DH,0AH,'$' EX DB ,0DH,0AH,"GOOD BYE AND PLEASE DON'T COME NEXT TIME",0DH,0AH,'$' RESUME DB ,0DH,0AH,"DO YOU WANT TO RESUME Y/N",0DH,0AH,'$' VAL1 DB ? VAL2 DB ? VAL3 DB ? SELECT DB ? VAL DB ? .CODE .STARTUP START: MOV AH,09H MOV DX,OFFSET NO1 INT 21H MOV AH,01H INT 21H SUB AL,30H MOV VAL2,AL MOV BL,VAL2 MOV AH,09H MOV DX,OFFSET NO2 INT 21H MOV AH,01H INT 21H SUB AL,30H MOV VAL3,AL MOV CL,VAL3 MOV AH,09H MOV DX,OFFSET MENU INT 21H MOV AH,01H INT 21H MOV SELECT,AL MOV AL,SELECT CMP AL,'1' JE SHL1 CMP AL,'2' JE SHR1 CMP AL,'3' JE ROL1 CMP AL,'4' JE ROR1 CMP AL,'E' JE EX1 CMP AL,'R' JMP START SHL1: SHL BL,CL MOV VAL1,BL MOV AH,09H MOV DX,OFFSET ANSWER INT 21H
  • 2. SamiULLAH Section D 15B-145-EL MOV AL,VAL1 ADD AL,30H MOV AH,0EH INT 10H MOV AH,09H MOV DX,OFFSET RESUME INT 21H MOV AH,01H INT 21H MOV VAL,AL MOV AL,VAL CMP AL,'Y' JE START CMP AL,'N' JE EX1 SHR1: SHR BL,CL MOV VAL1,BL MOV AH,09H MOV DX,OFFSET ANSWER INT 21H MOV AL,VAL1 ADD AL,30H MOV AH,0EH INT 10H MOV AH,09H MOV DX,OFFSET RESUME INT 21H MOV AH,01H INT 21H MOV VAL,AL MOV AL,VAL CMP AL,'Y' JE START CMP AL,'N' JE EX1 ROL1: ROL BL,CL MOV VAL1,BL MOV AH,09H MOV DX,OFFSET ANSWER INT 21H MOV AL,VAL1 ADD AL,30H MOV AH,0EH INT 10H MOV AH,09H MOV DX,OFFSET RESUME INT 21H MOV AH,01H INT 21H MOV VAL,AL MOV AL,VAL CMP AL,'Y' JE START CMP AL,'N' JE EX1 ROR1: ROR BL,CL MOV VAL1,BL MOV AH,09H MOV DX,OFFSET ANSWER INT 21H MOV AL,VAL1 ADD AL,30H MOV AH,0EH INT 10H MOV AH,09H MOV DX,OFFSET RESUME INT 21H MOV AH,01H INT 21H MOV VAL,AL MOV AL,VAL
  • 3. SamiULLAH Section D 15B-145-EL CMP AL,'Y' JE START CMP AL,'N' JE EX1 EX1: MOV AH,09H MOV DX,OFFSET EX INT 21H .EXIT END OUTPUT Shift Left
  • 4. SamiULLAH Section D 15B-145-EL Shift Right Rotate Left
  • 5. SamiULLAH Section D 15B-145-EL Rotate Right