Computer Science, asked by Nowsh404, 11 months ago

The content of register b and accumulator of 8085 are ah and bh respectively.The content of a,status of carry flag and sign flag after executing sub b;instruction are?

Answers

Answered by Hemalathajothimani
4

Answer:

Explanation:

  1. SUB A instruction will subtract the content of the accumulator itself. It is used to ... Since it is the Data Transfer instruction so it will not affect any flag. After this ... DCR B will decrease the content of the register B by 1. ... INR operation doesn't affect Carry flag(CY). ... HLT will terminate the execution of program.
  • When memory is an operand, its address is specified by HL Pair. No contents are modified; however all remaining flags (S, P, AC) are affected according to the result of subtraction. Flags: As A less than B, thus CY is set and Z flag is reset.

  • The FLAGS register is the status register in Intel x86 microprocessors that contains the current state of the processor. This register is 16 bits wide. ... The fixed bits at bit positions 1, 3 and 5, and carry, parity, adjust, zero and sign flags are inherited from an even earlier architecture, 8080 and 8085.In which instruction the flags are not affected?

   2.loop instruction

» loop instruction does not affect any flags!

follow me.i wll inbox u

Similar questions