8085 program to shift an eight bit data four bits right
program to shift an eight bit data four bits right. Assume that data is in
MVI C AB # A = 00 || C = AB
MOV A C # A = AB || C = AB
RRC # A = D5 || C = AB
RRC # A = EA || C = AB
RRC # A = 75 || C = AB
RRC # A = BA || C = AB
MOV C A # A = BA || C = BA
MVI C AB – 16 bits (2 bytes) command which will load register A i.e. Accumulator with 8 bit data. MVI means Move Immediate.
MOV A C – A 8 bits command which will copy and load data of register C to Accumulator.
RRC – It stands for “Rotate Right Accumulator”. it will rotate the Accumulator current content to the right by 1-bit position. LSB bit will be shifted in MSB and Carry Flag.
MOV C A – A 8 bits command which will copy and load data of Accumulator to register C.
HTL – It means Halt the microprocessor.
RRC Instruction in 8085
Connect with us on following platforms
Checkout Other Microprocessor Architecture Practical Program
Checkout Other Microprocessor Architecture Quiz
|Microprocessor, microcomputers, and Assembly Language|
|1 – Best Microprocessor Architecture Quiz on chapter 1|
|2 – Best Quiz on Microprocessor Architecture chapter 1|
|Introduction to 8085 Assembly Language Programming|
|1 – Easy Quiz on 8085 Assembly Language Programming|
|2 – Easy Quiz on 8085 Assembly Language Programming|
|Microprocessor Architecture and Microcomputer System|
|1 – Easy Microprocessor Architecture and Microcomputer System Quiz|
|8085 Microprocessor Architecture and Memory Interface|
|1 – Easy quiz on 8085 Microprocessor Architecture and Memory Interfacing|
|Interfacing of I/O Devices|
|1 – Easy quiz on 8085 Interfacing of I/O Devices|
|Introduction to 8085 Instructions|
|1 – Easy quiz on 8085 Instructions|
|More coming soon… stay tune|