Modes and Exception types. This function returns the content of the Current Program Status Register (CPSR). The Status register contains the arithmetic status of the Arithmetic Logic Unit, the Reset status of the PIC and the Bank Selection bits, direct and indirect. STATUS register is an 8-bit reserved memory location which contains 8 different flags (each flag takes one bit with 0 or 1 value).These flags are used for keeping different Status of the execution and selection of other execution related things like: The bits of the Status register as as follows: The purpose of the Processor Status Register is to hold information about the most recently performed ALU operation, control the enabling and disabling of interrupts and set the CPU operating mode. SP in association with the SS register (SS:SP) refers to be current position of data or address within the program stack. IP in association with the CS register (as CS:IP) gives the complete address of the current instruction in the code segment. The Processor Status Register (abbreviated as P) is a hardware register which records the condition of the CPU as a result of arithmetic, logical or command operations. Program status word is also referred to as the flag register. the link register which holds the callers’s return address. This Page. SECTION VI - THE PROGRAM STATUS WORD AND FLAG BITS IN 8051The 8051 has a flag register to indicate arithmetic conditions such as the carry bit. FEMA is not able to accept registrations for COVID-19, also known as the Coronavirus. You can find more information on the Coronavirus (COVID-19) page and the Centers for Disease Control and Prevention (CDC) website.. R15 / PC which holds the program counter. This holds flags: results of arithmetic and logical operations. In addition to the main registers there is also a status register: CPSR is the current program status register. If you are unemployed due to the Coronavirus, please contact your local unemployment office. Returns CPSR Register value. The program status word (PSW) register is an 8-bit register.It is also referred to as the flag register. Status Register Instructions. These flags are conditional/status flags. Stack Pointer (SP) − The 16-bit SP register provides the offset value within the program stack. The Status register is accessible from all 4 banks. Figure – Format of flag register There are total 9 flags in 8086 and the flag register is divided into two types: (a) Status Flags – There are 6 flag registers in 8086 microprocessor which become set(1) or reset(0) depending upon condition after either 8-bit or 16-bit operation. A status register, flag register, or condition code register (CCR) is a collection of status flag bits for a processor.Examples of such registers include FLAGS register in the x86 architecture, flags in the program status word (PSW) register in the IBM System/360 architecture through z/Architecture, and the application program status register (APSR) in the ARM Cortex-A … Video by :-Prof. P. P. MahajanTitle:- Program Status Register Subject:- Fundamental of Micro-controller & Application Class :- SE Electrical The flag register in the 8051 is called the "Program Status Word [PSW]" register.PSW [Program Status Word] Register:The program status word [PSW] is an 8-bit register. Show Source The two unused bits are user-definable flags. Current Program Status Register (CPSR) Condition Bits; Interrupt Bits; Thumb Mode Bit; Mode Bits; Previous topic. Although the PSW register is 8 bits wide, only 6 bits of it are used by the 8051. Next topic.