SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

Segment Reporting and SAP New GL - ECC 6
Segment Reporting and SAP New GL - ECC 6Segment Reporting and SAP New GL - ECC 6
Segment Reporting and SAP New GL - ECC 6abcashok
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modesRamaPrabha24
 
DB2 and storage management
DB2 and storage managementDB2 and storage management
DB2 and storage managementCraig Mullins
 
Instruction set of 8085 Microprocessor By Er. Swapnil Kaware
Instruction set of 8085 Microprocessor By Er. Swapnil KawareInstruction set of 8085 Microprocessor By Er. Swapnil Kaware
Instruction set of 8085 Microprocessor By Er. Swapnil KawareProf. Swapnil V. Kaware
 
Beginner's Guide: Programming with ABAP on HANA
Beginner's Guide: Programming with ABAP on HANABeginner's Guide: Programming with ABAP on HANA
Beginner's Guide: Programming with ABAP on HANAAshish Saxena
 
5 the relational algebra and calculus
5 the relational algebra and calculus5 the relational algebra and calculus
5 the relational algebra and calculusKumar
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Bilal Amjad
 
New Oracle HCM Presentation (00000002)
New Oracle HCM Presentation (00000002)New Oracle HCM Presentation (00000002)
New Oracle HCM Presentation (00000002)Kristina Kurz
 
8085 data transfer instruction set
8085 data transfer instruction set8085 data transfer instruction set
8085 data transfer instruction setprashant1271
 
Aggregate functions
Aggregate functionsAggregate functions
Aggregate functionssinhacp
 
8 bit single cycle processor
8 bit single cycle processor8 bit single cycle processor
8 bit single cycle processorDhaval Kaneria
 
효율적인 SQL 작성방법 1주차
효율적인 SQL 작성방법 1주차효율적인 SQL 작성방법 1주차
효율적인 SQL 작성방법 1주차희동 강
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationshipswmassie
 

What's hot (20)

Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Segment Reporting and SAP New GL - ECC 6
Segment Reporting and SAP New GL - ECC 6Segment Reporting and SAP New GL - ECC 6
Segment Reporting and SAP New GL - ECC 6
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
Flags registers
Flags registersFlags registers
Flags registers
 
DB2 and storage management
DB2 and storage managementDB2 and storage management
DB2 and storage management
 
Instruction set of 8085 Microprocessor By Er. Swapnil Kaware
Instruction set of 8085 Microprocessor By Er. Swapnil KawareInstruction set of 8085 Microprocessor By Er. Swapnil Kaware
Instruction set of 8085 Microprocessor By Er. Swapnil Kaware
 
Addressing modes ppt
Addressing modes pptAddressing modes ppt
Addressing modes ppt
 
PHP
PHPPHP
PHP
 
Beginner's Guide: Programming with ABAP on HANA
Beginner's Guide: Programming with ABAP on HANABeginner's Guide: Programming with ABAP on HANA
Beginner's Guide: Programming with ABAP on HANA
 
5 the relational algebra and calculus
5 the relational algebra and calculus5 the relational algebra and calculus
5 the relational algebra and calculus
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
 
New Oracle HCM Presentation (00000002)
New Oracle HCM Presentation (00000002)New Oracle HCM Presentation (00000002)
New Oracle HCM Presentation (00000002)
 
8085 data transfer instruction set
8085 data transfer instruction set8085 data transfer instruction set
8085 data transfer instruction set
 
Aggregate functions
Aggregate functionsAggregate functions
Aggregate functions
 
MySQL and its basic commands
MySQL and its basic commandsMySQL and its basic commands
MySQL and its basic commands
 
Sap fico satyanarayana material
Sap fico satyanarayana materialSap fico satyanarayana material
Sap fico satyanarayana material
 
Views
ViewsViews
Views
 
8 bit single cycle processor
8 bit single cycle processor8 bit single cycle processor
8 bit single cycle processor
 
효율적인 SQL 작성방법 1주차
효율적인 SQL 작성방법 1주차효율적인 SQL 작성방법 1주차
효율적인 SQL 작성방법 1주차
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationships
 

More from 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
 
Calculator 8086 Assembly Language Programming
Calculator 8086 Assembly Language Programming Calculator 8086 Assembly Language Programming
Calculator 8086 Assembly Language Programming Sami Ullah
 

More from Sami Ullah (7)

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
 
Calculator 8086 Assembly Language Programming
Calculator 8086 Assembly Language Programming Calculator 8086 Assembly Language Programming
Calculator 8086 Assembly Language Programming
 

Recently uploaded

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
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
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
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
 
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
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
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
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
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
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
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
 

Recently uploaded (20)

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
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
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
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
 
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
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
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
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
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
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
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
 

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