Many complex components come together to make a computer system work seamlessly. One such essential element is the program counter. There is a register in a PC (program counter) processor that contains the address of the next instruction to be executed from memory.
In this article we learn what program counter is, how it works and many more. So, let's start -
Before going to the direct topic, let us discuss some primary terminologies such as:
CPU (Central Processing Unit)
The full name of the CPU is Central Processing Unit. It is also known as a processor. CPU is the brain of the computer system.
It is an electronic microchip that processes the data and converts it into useful information based on the instructions given and controls all the functions of the computer system.
Instructions
Computer instructions are a group of machine language instructions and they are executed by a specific computer processor. Whatever instruction we give to the computer, it will work on its basis.
Memory
Computer memory is a device that is used to store data and information. In other words, “Computer memory is an important part of the computer in which data is stored, without memory the computer does not work.” .Memory includes RAM and ROM.
What is Program Counter?
There is a register in a PC (program counter) processor that contains the address of the next instruction to be executed from memory.
It is a 16-bit register and is also called instruction counter, instruction pointer, and instruction address register (IAR). PC (program counter) is a digital counter that is needed to execute tasks quickly and track the current execution point.

All the instructions and data present in memory have a special address. As each instruction is processed, the program counter is updated to the address of the next instruction to be fetched. When a byte (machine code) is fetched, the PC is incremented by one. So that it can fetch the next instruction. If the computer is reset or restarted, the program counter returns to zero value.
For example, suppose the content of the PC is 8000H. This means that the processor wants to fetch the instruction byte on 8000H. After fetching the byte at 8000H, the PC automatically increments by one (1). In this way, the processor becomes ready to fetch the next byte of the instruction or to fetch the next opcode.
Similar Reads
What is a Computer Program? Software development is one of the fastest-growing technologies as it can make work easy in our daily lives. It is the foundation of modern technology. We write a set of programs to form software programs is the basic necessity for building software. Here in this article, we are going to learn about
5 min read
Registers Vs Counters In the domain of logic registers and counters are the two components that have distinct roles, in storing and manipulating data. We will explore the definitions, examples, applications, advantages, and disadvantages of registers and counters, illuminating their functions in systems in this article.
4 min read
Programming Construction in COBOL COBOL is a compiled, imperative, procedural programming language designed for business use. It can handle very large numbers and strings. COBOL is still in use today because it's robust, with an established code base supporting sprawling enterprise-wide programs. Learning to program in COBOL will se
5 min read
Program Structure of COBOL COBOL is a programming language that was developed to solve business problems. COBOL stands for Common Business Oriented Language. Being a High-Level Structured Language, COBOL is very similar to English-like language, which is used to develop major business applications. Due to its easier maintenan
2 min read
C# Program to Get the Count of Total Created Objects C# is a general-purpose programming language it is used to create mobile apps, desktop apps, websites, and games. In C#, an object is a real-world entity. Or in other words, an object is a runtime entity that is created at runtime. It is an instance of a class. In this article, we will create multip
3 min read