Bit Manipulation Commands: Diploma in Computing and IT: Level - 1
Bit Manipulation Commands: Diploma in Computing and IT: Level - 1
AICT001-3-2
Prepared by: TPM First Prepared on: 03-06-08 Last Modified on: 20--06-08
Quality checked by: KNT
Copyright 2008 Asia Pacific Institute of Information Technology
Topic & Structure of the lesson
Assembly Language
Example:-
MOV AH,198
AND AH,117
Example:-
MOV AH,198
OR AH,117
MOV AH,198
XOR AH,117
Example:-
MOV AH,198
SHL AH,2
11000110
High order bits
are lost Low order bits
(discarded) (zeros) are
added
1100011000
Shift Direction
Example:-
MOV AH,198
SHR AH,2
0011000110
Shift Direction
Example:-
MOV AH,198
ROL AH,2
1100011011
Rotate Direction
Example:-
MOV AH,198
ROR AH,2
1011000110
Rotate Direction
THANKS
• Flow Control.