Hello sir,
Someone please give me the idea about how to do swapping of bits from even numbered bit to odd numbered bit.
here i found one program but i couldnt get the logic.see below
Mov A,R3
RL A
ANL A,#0AAh
PUSH 0E0
MOV A,R3
RR A
ANL A,#055H
MOV R3,A
POP 0E0
ORL 03H,A
SOME ONE EXPLAIN ME THE LOGIC OF ABOVE PROGRAM
Someone please give me the idea about how to do swapping of bits from even numbered bit to odd numbered bit.
here i found one program but i couldnt get the logic.see below
Mov A,R3
RL A
ANL A,#0AAh
PUSH 0E0
MOV A,R3
RR A
ANL A,#055H
MOV R3,A
POP 0E0
ORL 03H,A
SOME ONE EXPLAIN ME THE LOGIC OF ABOVE PROGRAM