The document discusses the effect of various 8085 microprocessor instructions on status flags. It divides instructions into four categories: instructions that do not affect flags, instructions that affect all flags, instructions that only affect the carry flag, and instructions that affect all flags but then modify some flags. For each category, it lists the relevant instruction types (data transfer, arithmetic, logical, etc.) and provides examples of specific instructions that fall into that category.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
50 views
8085 Flag Status Skill
The document discusses the effect of various 8085 microprocessor instructions on status flags. It divides instructions into four categories: instructions that do not affect flags, instructions that affect all flags, instructions that only affect the carry flag, and instructions that affect all flags but then modify some flags. For each category, it lists the relevant instruction types (data transfer, arithmetic, logical, etc.) and provides examples of specific instructions that fall into that category.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Prepared by swami sir 25/09/2021 9890750449
No Flags are affected 8085 instructions
A) DATA TRANSFER INSTRUCTIONS No Flags are affected . 1) MOV r1, r2 2) MOV M , r 3) MOV r , M 4) MVI r , Data 5) MVI M , Data 6) LDA addr 7) LDAX rp 8) LXI rp, Data 9) LHLD addr 10) STA addr 11) STAX rp 12) SHLD addr 13) XCHG B) ARITHMETIC INSTRUCTIONSONS No Flags are affected . 1) INX rp 2) DCX rp C) LOGICAL INSTRUCTIONSONS No Flags are affected . 1) CMA D) BRACH CONTROL INSTRUCTIONSONS No Flags are affected . 1) JMP addr 2) Jcondition addr 3) CALL addr 4) Ccondition addr 5) RET 6) Rcondition 7) RST n 8) PCHL E) MACHINE CONTROL INSTRUCTIONSONS No Flags are affected . 1) PUSH rp 2) PUSH PSW 3) POP rp 4) POP PSW 5) XTHL 6) SPHL 7) IN port 8) OUT port 9) EI 10) DI 11) HLT 12) NOP 13) RIM 14) SIM ALL Flags are affected 8085 instructions A) ARITHMETIC INSTRUCTIONS All Flags are affected 1) ADD r 2) ADD M 3) ADI data 4) ADC r 5) ADC M 6) ACI data 7) SUB r 8) SUB M 9) SUI data 10) SBB r 11) SBB M 12) SBI data 13) DAA B) LOGICAL INSTRUCTIONSONS All Flags are affected . 1) CMP r 2) CMP M 3) CPI data
Flag status in 8085 instruction Page-1
Prepared by swami sir 25/09/2021 9890750449 Only Carry Flag is affected 8085 instructions A) ARITHMETIC INSTRUCTIONS Only Carry Flag is affected 1) DAD rp B) LOGICAL INSTRUCTIONS Only Carry Flag is affected 1) RLC 2) RAL 3) RRC 4) RAR 5) CMC 6) STC Except Carry flag All flags are affected ARITHMETIC INSTRUCTIONS Except Carry Flag All other flags are affected 1) INR r 2) INR M 3) DCR r 4) DCR M All Flags are affected then some flags again modified such as CY =0, AC=1 LOGICAL INSTRUCTIONS All Flags are affected then carry flag is reset and auxilary carry flags is set. 1) ANA r 2) ANA M 3) ANI data All Flags are affected then some flags again modified such as CY =0, AC=1 LOGICAL INSTRUCTIONS All Flags are affected then both carry and auxilary carry flags are reset. 1) ORA r 2) ORA M 3) ORI data 4) XRA r 5) XRA M 6) XRI data