1 MP 8085
1 MP 8085
1 MP 8085
• The Registers are of 8-bit & 16-bit size used for different purposes
– A- Accumulator – This is an special purpose register. All the ALU
operations are performed with reference to the
contents of Accumulator.
– B,C,D,E,H,L – General purpose registers. These registers can also
be used for 16-bit operations in pairs. The default
pairs are BC, DE & HL.
– F – Flag register – This register indicates the status of the ALU
operation.
– PC – Program Counter – This is a 16-bit register used to address
the memory location from where an
instruction is going to be executed.
– SP – Stack pointer - This is a 16-bit register used to address the
top of the stack memory location.
– Temporary register, W & Z – These registers are only used by
8085 and are not available for the
programmer.
8085 Architecture Contd..
• Arithmetic Instructions
– 8085 can perform only 8-bit addition, subtraction and compare
operations. These operations are always performed with
accumulator as one of the operands. The status of the result can
be verified by the contents of the flag register.
– Op-codes for arithmetic instructions include ADD, ADI, ADC, ACI,
SUB, SUI, SBB, SBI, CMP, CPI
• Logical Instructions
– 8085 can perform 8-bit basic logical operations -AND, OR, XOR,
NOT with some special operations such as rotate and shift
operations
– Logical instructions also modify the flag bits.
– Op-codes for logical instructions include ANA, ANI, ORA, ORI, XRA,
XRI, CMA, RAL, RLC, RAR, RRC etc.
Instruction Set Contd..