Source program:
MOV A, C
RAR
RAR
RAR
RAR
MOV C, A
HLT
Statement:Write a program to shift a 16 bit data, 1 bit right. Assume that data is in BC register pair.
Statement:Write a program to shift a 16 bit data, 1 bit right. Assume that data is in BC register pair.
Source program:
MOV A, B
RAR
MOV B, A
MOV A, C
RAR
MOV C, A
HLT
No comments:
Post a Comment