CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
220
You visited us 220 times! Enjoying our articles? Unlock Full Access!
Question

Registers which are partially visible to users and used to hold conditional codes(bits set by the CPU) hardware as the result of operations), are known as.

A
PC
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Memory Address Registers
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
General purpose registers
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Flags
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
E
None of the above
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C Flags

Registers which are partially visible to users and used to hold conditional codes(bits set by the CPU) hardware as the result of operations), are known as Flags.

A status register, flag register, or condition code register (CCR) is a collection of status flag bits for a processor. An example is the FLAGS register of the x86 architecture or flags in a program status word (PSW) register.

The status register is a hardware register that contains information about the state of the processor. Individual bits are implicitly or explicitly read and/or written by the machine code instructions executing on the processor. The status register lets an instruction take action contingent on the outcome of a previous instruction.

Typically, flags in the status register are modified as effects of arithmetic and bit manipulation operations. For example, a Z bit may be set if the result of the operation is zero and cleared if it is nonzero. Other classes of instructions may also modify the flags to indicate status. For example, a string instruction may do so to indicate whether the instruction terminated because it found a match/mismatch or because it found the end of the string. The flags are read by a subsequent conditional instruction so that the specified action (depending on the processor, a jump, call, return, or so on) occurs only if the flags indicate a specified result of the earlier instruction.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Info, Info, and More Info
HISTORY
Watch in App
Join BYJU'S Learning Program
CrossIcon