In 8-bit data, there are two nibbles. Nibble is of 4-bit. Here, we take 6BH as a 8-bit data which is separated into two nibbles 06H and 0BH and stored at 2030h and 2031h respectively.
MVI A,6Bh
MOV C,A
ANI 0Fh
STA 2030h ;0Bh is stored.
MOV A,C
ANI F0h
RRC
RRC
RRC
RRC
STA 2031h ;06h is stored.
HLT
MVI A,6Bh
MOV C,A
ANI 0Fh
STA 2030h ;0Bh is stored.
MOV A,C
ANI F0h
RRC
RRC
RRC
RRC
STA 2031h ;06h is stored.
HLT
No comments:
Post a Comment