The status of CY, AC, P and S for the following program in 8085 microprocessor is:

MVI A, 8FH

MVI B, 68H

ADD B

This question was previously asked in
SJVNL ET Electrical 2019 Official Paper
View all SJVN Executive Trainee Papers >
  1. AC = 1; CY = 1; S = 0; P = 1
  2. AC = 0; CY = 0; S = 1; P = 0
  3. AC = 1; CY = 0; S = 1; P = 0
  4. AC = 0; CY = 1; S = 0; P = 1

Answer (Detailed Solution Below)

Option 3 : AC = 1; CY = 0; S = 1; P = 0
Free
SJVN ET General Awareness Mock Test
0.8 K Users
20 Questions 20 Marks 12 Mins

Detailed Solution

Download Solution PDF

Program:

MVI A, 8FH     ; Load accumulator A with 8FH = 100011112
MVI B, 68H     ; Load register B with 68H = 011010002
ADD B          ; A = A + B = 8FH + 68H

Step 1: Perform Addition

8FH = 143D
68H = 104D
143 + 104 = 247D = F7H = 111101112

Step 2: Evaluate Flags

  • Carry (CY): No carry from 8-bit addition → CY = 0
  • Auxiliary Carry (AC): Lower nibble: FH(1111) + 8H(1000) = 0111 with a carry from bit 3 to bit 4 → AC = 1
  • Sign Flag (S): MSB of result F7H is 1 → S = 1
  • Parity Flag (P): F7H = 11110111 has 7 ones → odd parity → P = 0
Latest SJVN Executive Trainee Updates

Last updated on Jul 15, 2025

-> SJVN Executive Trainee Written Exam date is out, The computer based exam will be held on 10th, 14th August 2025.

->SJVN Executive Trainee recruitment 2025 application form has been released. Applicants can apply for the SJVN recruitment 2025 Executive Trainee till May 18.

->SJVN Limited has announced the recruitment notification for the position of Executive Trainee 2025.

->A total of 114 vacancies are available for the SJVN Executive Trainee Recruitment across various disciplines such as Civil, Mechanical, Electrical, Environment, Electronics & Communication, and more.

->The selection process of SJVN Executive Trainee recruitment 2025, as per the previous notification, includes a Computer-Based Test, Group Discussion, and Personal Interview.

->Once selected, candidates will be required to sign a service agreement bond of Rs. 10,00,000/- (Rs. 7,50,000/- for SC/ST/PWD candidates), committing to complete the prescribed training and serve the company for a minimum of 3 years.

->Candidates must refer to the SJVN Executive Trainee Previous Year Papers and boost their preparation for the exam.

Get Free Access Now
Hot Links: teen patti all teen patti gold new version teen patti real cash