;Reverse a string using rotate operation
CODE SEGMENT
ASSUME CS:CODE,DS:CODE
MOV BL,0 ;Where the reversed string will be stored
MOV CX,8D; ;Length of the string
MOV AL,10100011B
REVERSE:
SHL AL,1
RCR BL,1
LOOP REVERSE
HLT
CODE ENDS
END