UMBC CMSC 211

UMBC | CSEE


Bit Operations Practice

Operations

All values are hexidecimal. For the shifts and rotates, the count is given in paraenthses.

 

F301
AND 00FF

 

F301
SHL(4)         

 

7316
ROR(4)         

 

F080
SAR(4)         

 

63E7
OR 8418

 

63E7
XOR 3333

 

937F
NOT         

 

F008
SAL(1)         

Assembly Language Practice

What is the value of the AX register after the instruction:
mov ax, 0B7E2h ax=
mov al, 2 ax=
shr ax, cl ax=
and ax, 00FFh ax=
rol ax, 1 ax=
xor ax, 7 ax=
or ax, 3 ax=
not ax ax=
mov ah, 4 ax=
and al, 0Fh ax=


UMBC | CSEE