Archive for June 2012
Addressing Modes in 8085
There are five addressing modes in 8085.
1. Immediate Addressing Mode: - An immediate is transferred directly to the register.
Eg: - MVI A, 30H (30H is copied into the register A)
Tag :
Introduction
RLC, RRC, RAL, RAR, CMA, CMC, STC
1. RLC: - Each binary bit of the accumulator is rotated left by one position. Bit D7 is placed in the position of D0 as well as in the Carry flag. CY is modified according to bit D7. Any other bit is not affected.
Tag :
Programming
CMP, CPI, ANA, ANI, XRA,XRI, ORA, ORI
1. CMP: - (compare register or memory with accumulator) The contents of the operand register or memory are M compared with the contents of the accumulator. Both contents are preserved . The result of the comparison is shown by setting the flags of the PSW as follows:
if (A) < reg/mem: carry flag is set.
if (A) = reg/mem:
if (A) = reg/mem:
Tag :
Programming