0% found this document useful (0 votes)
464 views8 pages

Programming Model 8085

The 8085 microprocessor uses a programming model that includes six general purpose 8-bit registers (B, C, D, E, H, L), an 8-bit accumulator register, an 8-bit flag register containing status flags, a 16-bit program counter register that stores the address of the next instruction to fetch, and a 16-bit stack pointer register that points to the stack memory location. The accumulator performs arithmetic and logic operations and stores results. The flag register stores status flags updated by operations. The program counter sequences instruction execution by incrementing after each instruction fetch.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
464 views8 pages

Programming Model 8085

The 8085 microprocessor uses a programming model that includes six general purpose 8-bit registers (B, C, D, E, H, L), an 8-bit accumulator register, an 8-bit flag register containing status flags, a 16-bit program counter register that stores the address of the next instruction to fetch, and a 16-bit stack pointer register that points to the stack memory location. The accumulator performs arithmetic and logic operations and stores results. The flag register stores status flags updated by operations. The program counter sequences instruction execution by incrementing after each instruction fetch.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

PROGRAMMING MODEL OF

8085 MICROPROCESSOR
(UNIT-1)

(SUB: Microprocessor and Interfaces)

PREPARED BY:
ER. MOHIT MISHRA
ASSOCIATE PROFESSOR
COMPUTER SCIENCE DEPARTMENT
Accumulator (8-bit) Flag Register (8-bit)
S Z AC P CY

B (8-bit) C (8-bit)
D (8-bit) E (8-bit)
H (8-bit) L (8-bit)
Stack Pointer (SP) (16-bit)
Program Counter (PC) (16-bit)

8- Lines 16- Lines


Bidirectional Unidirectional
Overview: 8085 Programming model
1. Six general-purpose Registers
2. Accumulator Register
3. Flag Register
4. Program Counter Register
5. Stack Pointer Register
1. Six general-purpose registers
– B, C, D, E, H, L
– Can be combined as register pairs to
perform 16-bit operations (BC, DE, HL)
2. Accumulator – identified by name A
– This register is a part of ALU
– 8-bit data storage
– Performs arithmetic and logical operations
– Result of an operation is stored in
accumulator
3. Flag Register
– This is also a part of ALU
– 8085 has five flags named
• Zero flag (Z)
• Carry flag (CY)
• Sign flag (S)
• Parity flag (P)
• Auxiliary Carry flag (AC)
• These flags are five flip-flops in flag register
• Execution of an arithmetic/logic operation can
set or reset these flags
• Condition of flags (set or reset) can be tested
through software instructions
• 8085 uses these flags in decision-making
process
4. Program Counter (PC)
– A 16-bit memory pointer register
– Used to sequence execution of program
instructions
– Stores address of a memory location
• where next instruction byte is to be fetched
by the 8085
– when 8085 gets busy to fetch current
instruction from memory
• PC is incremented by one
• PC is now pointing to the address of next
instruction
5. Pointer Register
– a 16-bit memory pointer register
– Points to a location in Stack memory
– Beginning of the stack is defined by loading
a 16-bit address in stack pointer register

You might also like