i was asked to store the most significant nibble of A in both nibbles of R5; for example a = b6h then r5 = bbh
am confused in how to solve it can u please help
I don't know the assembly language for the 8051, but you should be able to:
AND A with f0h
STORE A to R5
logical SHIFT right A 4 times (actually, I think you can 'SWAP' the nibbles of A with the 8051)
OR A with R5
STORE A to R5