Saturday, May 30, 2009

Write a program to shift an eight bit data four bits right. Assume that data is in register C.

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.

Source program:
MOV A, B
RAR
MOV B, A
MOV A, C
RAR
MOV C, A
HLT



No comments:

Post a Comment