The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL

ROTATE INSTRUCTIONAND DATA


SERIALIZATION


SWAP


SWAP A‰It swaps the lower nibble and the higher nibble


¾In other words, the lower 4 bits are put into the higher 4 bits and the higher 4 bits are put into the lower 4 bits


‰SWAP works only on the accumulator (A)


D7-D4


before :after :


D3-D0


D3-D0D7-D4

Free download pdf