CE - Basics -Flags

CE - Basics -Flags

University

15 Qs

quiz-placeholder

Similar activities

OSI Model - Network Layer

OSI Model - Network Layer

9th Grade - Professional Development

10 Qs

Quiz 2 Sistem Digital

Quiz 2 Sistem Digital

University

20 Qs

Arithmetic an Logic Instruction

Arithmetic an Logic Instruction

University

10 Qs

8051 microcontroller&PLC(05.09.2021)

8051 microcontroller&PLC(05.09.2021)

University

12 Qs

SIM - Jaringan Komputer

SIM - Jaringan Komputer

University

14 Qs

Module 3

Module 3

University

15 Qs

Karnaugh Map

Karnaugh Map

7th Grade - University

10 Qs

Java Arrays

Java Arrays

University

10 Qs

CE - Basics -Flags

CE - Basics -Flags

Assessment

Quiz

Computers

University

Medium

Created by

JenkinWinston J

Used 37+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the ALU operation used by microprocessor to apply a bitwise mask to a register.

AND with the mask

XOR with 0xFF

OR with 0x00

ADD with the mask

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the bus which carries the address of the next instruction from program counter (PC).

Address bus

Data bus

Control bus

Status flag lines

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Calculate the final content of accumulator (A) and flag registers (S, Z, AC, P, CY) after the execution of the following assembly language program.

MVI A, FF H;

ANI 00 H;

A = 00 H, S = 0, Z = 1, AC = 0, P = 1, CY = 0

A = FF H, S = 1, Z = 1, AC = 0, P = 1, CY = 0

A = F0 H, S = 0, Z = 0, AC = 0, P = 0, CY = 0

A = 0F H, S = 0, Z = 1, AC = 0, P = 0, CY = 0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Infer the usage of Memory Address Register (MAR) in the given scenario where the CPU must read data from a memory location with address 2000 H.

The CPU places 2000 H into MAR, which is then sent to the address bus

It holds the data read from memory

It sets the next program instruction in the PC

It stores the current stack pointer value

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Prioritize the next step in the decode phase where a CPU finished fetching the opcode into the instruction register (IR).

The control unit interprets the opcode, setting up control signals for the next phase (e.g., ALU operation, memory access)

It increments the stack pointer by 1

The CPU discards the opcode

The CPU discards the Instruction Register

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Estimate the status of flag register after execution of the following assembly language program (ALP).
MVI A, 01H ;

DCR A ;

S=0, Z=1, AC=0, P=1, CY=0

S=0, Z=1, AC=1, P=0, CY=1

S=1, Z=1, AC=0, P=0, CY=1

S=0, Z=0, AC=1, P=1, CY=0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Estimate the status of flag register after execution of the following assembly language program (ALP).

MVI A, FFH

MVI B, 01H

ADD B

S=0, Z=1, AC=1, P=1, CY=1

S=1, Z=0, AC=1, P=0, CY=0

S=1, Z=1, AC=0, P=1, CY=1

S=0, Z=0, AC=1, P=0, CY=1

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?