SlideShare a Scribd company logo
Unit-II-A
Instruction Set and programming with 8085
Assembly Language programming basics,
Instruction set of microprocessor:
Data transfer, Arithmetic, logical, loop,
branching etc, timing diagram, writing,
assembling and executing assembly language
programs.
Flag register of 8085
• S-Sign flag - After the execution of arithmetic or
logical operations, if bit D7 of the result is 1, the sign
flag is set. In a given byte if D7 is1, the number will
be viewed as a negative number. If D7 is U, the
number will be considered as a positive number.
• Z-Zero flag -The zero flag sets if the result of the
operation in ALU is zero and flag resets if the result is
non zero. The zero flags are also set if a certain
register content becomes zero following an
increment or decrement operation of that register.
Data Transfer Instructions
• Move or copy data from one location to another.
• Examples: MOV, MVI, LXI, STA, LDA.
• Logical Instructions
• Execute bit-wise logical operations such as AND,
OR, XOR, and comparison.
• Examples: ANA, ORA, CMP, XRA.
Branching Instructions
• Change the flow of program execution based
on conditions or unconditionally.
• Examples: JMP, CALL, RET, JNZ.
Control Instructions
• Control operations like interrupt handling and
halting the processor.
• Examples: HLT, NOP, RIM, SIM.
• AC-auxiliary Carry flag - This flag is set if there is an overflow
out of bit 3 i.e. carry from lower nibble to higher nibble (D3
bit to D4 bit). This flag is used for BCD operations and it is not
available for the programmer.
• P-Parity flag - Parity is defined by the number of ones present
in the accumulator. After arithmetic or logical operation, if the
result has an even number of ones, i.e.even parity, the flag is
set. If the parity is odd, the flag is reset.
• CY-Carry flag - This flag is set if there is an overflow out of bit
7. The carry flag also serves as a borrow flag for subtraction. In
both the examples shown below, the carry flag is set.

More Related Content

PPTX
Microprocessor architecture-I
PPTX
Uc 2(vii)
PPTX
5th unit Microprocessor 8085
PPTX
Microprocessors-based systems (under graduate course) Lecture 4 of 9
PDF
ITFT_Architecture of 8085
PPTX
understanding-the-flag-register-a-key-component-of-processor-architecture-202...
PPT
Programming-8085 programming, description and base model.ppt
PPT
dspa details
Microprocessor architecture-I
Uc 2(vii)
5th unit Microprocessor 8085
Microprocessors-based systems (under graduate course) Lecture 4 of 9
ITFT_Architecture of 8085
understanding-the-flag-register-a-key-component-of-processor-architecture-202...
Programming-8085 programming, description and base model.ppt
dspa details

Similar to Instruction set of microprocessor: Data transfer, Arithmetic (20)

PPTX
Register Organisation of 8086 Microprocessor
PPTX
8086 Microprocessor
PPTX
Lecture_about spm and related issues 3_COAL.pptx
PDF
Lecture Notes Microprocessor and Controller Unit2
PPTX
Assembly Language and microprocessor
PPTX
8051 microcontroller
PPTX
8085 microprocessor architecture
PDF
mod1 microprocessor ppt if you want you can download it if younwant to study ...
PPSX
Dsp Datapath
PPTX
Lecture_3.1 Registers.pptx....................
PPTX
8085 microprocessor(1)
PPTX
MES_MODULE 2.pptx
PPT
Embeded system
PDF
Computer organiztion4
PPT
Chapter3 presentation2
PPT
PPT
8051 MMD Chapter 1.ppt
PDF
8085 Architecture.pdfdgsghjccvnfcvjfcvhjj
PPTX
Microprocessor 8085 architecture ppt. april 2013
PPTX
SS-SIC (1).pptx
Register Organisation of 8086 Microprocessor
8086 Microprocessor
Lecture_about spm and related issues 3_COAL.pptx
Lecture Notes Microprocessor and Controller Unit2
Assembly Language and microprocessor
8051 microcontroller
8085 microprocessor architecture
mod1 microprocessor ppt if you want you can download it if younwant to study ...
Dsp Datapath
Lecture_3.1 Registers.pptx....................
8085 microprocessor(1)
MES_MODULE 2.pptx
Embeded system
Computer organiztion4
Chapter3 presentation2
8051 MMD Chapter 1.ppt
8085 Architecture.pdfdgsghjccvnfcvjfcvhjj
Microprocessor 8085 architecture ppt. april 2013
SS-SIC (1).pptx
Ad

More from govindsingh258478 (16)

PPTX
Unit - I : Introduction of Embedded system
PPTX
Unit-VI IoT applications like Home automations etc
PPTX
Interfacing with 8051: LED, LED pattern display
PPTX
Off-Chip Peripheral Interfacing And Programming
PPTX
I/O Programming Timer/Counter: Operating Modes
PPTX
Embedded Programming: Data Types, Operators Embedded Programming
PPTX
Program Counter and ROM space in 8051 and register bank
PPTX
Functional block diagram and pin diagram of 8051
PPTX
Instruction Set and programming with 8085
PPTX
Basics of 8085 microprocessor architecture and functional block, 8085 micropr...
PPTX
Basics of 8085 microprocessor architecture
PDF
Introduction of IEEE 802.15.4 Technology
PDF
types of sensors are active, passive, analog, and digital. Active sensors
PDF
Fundamental components of the Internet of Things unit 1.pdf
PPT
Blockdiagramof8085.ppt
PPTX
Unit 2 DE Notes.pptx
Unit - I : Introduction of Embedded system
Unit-VI IoT applications like Home automations etc
Interfacing with 8051: LED, LED pattern display
Off-Chip Peripheral Interfacing And Programming
I/O Programming Timer/Counter: Operating Modes
Embedded Programming: Data Types, Operators Embedded Programming
Program Counter and ROM space in 8051 and register bank
Functional block diagram and pin diagram of 8051
Instruction Set and programming with 8085
Basics of 8085 microprocessor architecture and functional block, 8085 micropr...
Basics of 8085 microprocessor architecture
Introduction of IEEE 802.15.4 Technology
types of sensors are active, passive, analog, and digital. Active sensors
Fundamental components of the Internet of Things unit 1.pdf
Blockdiagramof8085.ppt
Unit 2 DE Notes.pptx
Ad

Recently uploaded (20)

PDF
composite construction of structures.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
web development for engineering and engineering
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Geodesy 1.pptx...............................................
PPTX
additive manufacturing of ss316l using mig welding
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
PPT on Performance Review to get promotions
PPTX
UNIT 4 Total Quality Management .pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
composite construction of structures.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
web development for engineering and engineering
bas. eng. economics group 4 presentation 1.pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
R24 SURVEYING LAB MANUAL for civil enggi
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Geodesy 1.pptx...............................................
additive manufacturing of ss316l using mig welding
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPT on Performance Review to get promotions
UNIT 4 Total Quality Management .pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

Instruction set of microprocessor: Data transfer, Arithmetic

  • 1. Unit-II-A Instruction Set and programming with 8085 Assembly Language programming basics, Instruction set of microprocessor: Data transfer, Arithmetic, logical, loop, branching etc, timing diagram, writing, assembling and executing assembly language programs.
  • 3. • S-Sign flag - After the execution of arithmetic or logical operations, if bit D7 of the result is 1, the sign flag is set. In a given byte if D7 is1, the number will be viewed as a negative number. If D7 is U, the number will be considered as a positive number. • Z-Zero flag -The zero flag sets if the result of the operation in ALU is zero and flag resets if the result is non zero. The zero flags are also set if a certain register content becomes zero following an increment or decrement operation of that register.
  • 4. Data Transfer Instructions • Move or copy data from one location to another. • Examples: MOV, MVI, LXI, STA, LDA. • Logical Instructions • Execute bit-wise logical operations such as AND, OR, XOR, and comparison. • Examples: ANA, ORA, CMP, XRA.
  • 5. Branching Instructions • Change the flow of program execution based on conditions or unconditionally. • Examples: JMP, CALL, RET, JNZ. Control Instructions • Control operations like interrupt handling and halting the processor. • Examples: HLT, NOP, RIM, SIM.
  • 6. • AC-auxiliary Carry flag - This flag is set if there is an overflow out of bit 3 i.e. carry from lower nibble to higher nibble (D3 bit to D4 bit). This flag is used for BCD operations and it is not available for the programmer. • P-Parity flag - Parity is defined by the number of ones present in the accumulator. After arithmetic or logical operation, if the result has an even number of ones, i.e.even parity, the flag is set. If the parity is odd, the flag is reset. • CY-Carry flag - This flag is set if there is an overflow out of bit 7. The carry flag also serves as a borrow flag for subtraction. In both the examples shown below, the carry flag is set.