1. RAL: - Each binary bit of the accumulator is rotated left by one position through the Carry flag. Bit D7 is placed in the Carry flag, and the Carry flag is placed in the least significant position D0. CY is modified according to bit D7
Eg: - RAL
2. RAR: - Each binary bit of the accumulator is rotated right by one position through the Carry flag. Bit D0 is placed in the Carry flag, and the Carry flag is placed in the most significant position D7. CY is modified according to bit D0.
Eg: - RAR
write an assembly language code in gnusim8085 to multiply and divide the 8-bit number by value 4.
9)Briefly explain the following 8085 logical instructions: CMP, ANA, ORA, XRA, CMA, CMC, STC. Also, write an assembly language code in gnusim8085 to find 1's and 2's complement of 8-bit numbers. Ans:- (Click here to View)
11)Briefly explain the following 8085 branch instructions: JMP, JC, JNC, JZ, JNZ, CALL, RET. Also, write an assembly language code in gnusim8085 to find whether the given number is even or odd. Ans:- (Click here to View)
No comments:
Post a Comment