Home

Right and Left shift a bit of data in 8086

Statement: A simple assembly language program with Shift and Rotate instructions

Source program:

MOV AX, 0055H

MOV DX, 0505H

MOV CL, 3

SAL AX, CL

SAR DX, CL

MOV CL, 2

ROR AX, CL

ROL DX, CL

STC

RCL AL, CL

RCR DX, CL

HLT