Program counter
computer introduced in 1952. Lights in the middle display the contents of various registers. The instruction counter is at the lower left. A program counter (PC) is a register that stores where a computer program is being executed by a processor. It is also commonly called the instruction pointer (IP) in Intel x86 and Itanium microprocessors, and sometimes called the instruction address register (IAR), the instruction counter, or just part of the instruction sequencer. Usually, a PC stores the memory address of an instruction. Further, it usually is incremented after fetching an instruction, and therefore points to the next instruction to be executed. For a processor that increments before fetch, the PC points to the instruction being executed. In some processors, the PC points some distance beyond the current instruction. For instance, in the ARM7, the value of PC visible to the programmer reflects instruction prefetching and reads as the address of the current instruction plus 8 in ARM State, or plus 4 in Thumb State. For modern processors, the location of execution in the program is complicated by instruction-level parallelism and out-of-order execution. By default, a processor fetches instructions sequentially from memory, but a control transfer instruction changes the sequence by writing a value in the PC.…
computer introduced in 1952. Lights in the middle display the contents of various registers. The instruction counter is at the lower left. A program counter (PC) is a register that stores where a computer program is being executed by a processor. It is also commonly called the instruction pointer (IP) in Intel x86 and Itanium microprocessors, and sometimes called the instruction address register (IAR), the instruction counter, or just part of the instruction sequencer. Usually, a PC stores the memory address of an instruction. Further, it usually is incremented after fetching an instruction, and therefore points to the next instruction to be executed. For a processor that increments before fetch, the PC points to the instruction being executed. In some processors, the PC points some distance beyond the current instruction. For instance, in the ARM7, the value of PC visible to the programmer reflects instruction prefetching and reads as the address of the current instruction plus 8 in ARM State, or plus 4 in Thumb State. For modern processors, the location of execution in the program is complicated by instruction-level parallelism and out-of-order execution. By default, a processor fetches instructions sequentially from memory, but a control transfer instruction changes the sequence by writing a value in the PC. A branch allows the next instruction to be fetched from elsewhere in memory. A function call not only branches but saves the value of the PC. A return restores the value of the PC to resume execution with the instruction following the call by branching to the saved value. A transfer that is conditional on the truth of some condition lets the computer follow a different sequence under different conditions.
References
- ARM7TDMI (Rev3) Reference manual · retrieved 2026-01-04 · rev 1352557684
Cite this reference
MLA "ARM7TDMI (Rev3) Reference manual." 2026-01-04. https://documentation-service.arm.com/static/5e8e1323fd977155116a3129?token=. Accessed 24 November 2026.
Chicago "ARM7TDMI (Rev3) Reference manual." 2026-01-04. https://documentation-service.arm.com/static/5e8e1323fd977155116a3129?token=.
APA encyclopegia.org. (2026). ARM7TDMI (Rev3) Reference manual. Retrieved November 24, 2026, from https://documentation-service.arm.com/static/5e8e1323fd977155116a3129?token=
- E. Predefined Symbols · retrieved 2020-02-27 · rev 1352557684
Cite this reference
MLA "E. Predefined Symbols." Arnold, Alfred (2020) [1996, 1989]. 2020-02-27. http://john.ccac.rwth-aachen.de:8000/as/as_EN.html#sect_E_. Accessed 24 November 2026.
Chicago "E. Predefined Symbols." Arnold, Alfred (2020) [1996, 1989]. 2020-02-27. http://john.ccac.rwth-aachen.de:8000/as/as_EN.html#sect_E_.
APA Arnold, Alfred (2020) [1996, 1989]. (2020). E. Predefined Symbols. Retrieved November 24, 2026, from http://john.ccac.rwth-aachen.de:8000/as/as_EN.html#sect_E_
- C. Gordon Bell and Allen Newell (1971), Computer Structures: Readings and Examples , McGraw-Hill Book Company , New York, USA Wikipedia revision 1352557684, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "C. Gordon Bell and Allen Newell (1971), Computer Structures: Readings and Examples , McGraw-Hill Book Company , New York, USA Wikipedia revision 1352557684, retrieved 2026-11-18." C. 2026-11-17. https://en.wikipedia.org/wiki/C._Gordon_Bell. Accessed 24 November 2026.
Chicago "C. Gordon Bell and Allen Newell (1971), Computer Structures: Readings and Examples , McGraw-Hill Book Company , New York, USA Wikipedia revision 1352557684, retrieved 2026-11-18." C. 2026-11-17. https://en.wikipedia.org/wiki/C._Gordon_Bell.
APA C. (2026). C. Gordon Bell and Allen Newell (1971), Computer Structures: Readings and Examples , McGraw-Hill Book Company , New York, USA Wikipedia revision 1352557684, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/C._Gordon_Bell
- F. B. Chambers, D. A. Duce and G. P. Jones (1984), Distributed Computing , Academic Press , Orlando, USA, ISBN 0-12-167350-2 Wikipedia revision 1352557684, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "F. B. Chambers, D. A. Duce and G. P. Jones (1984), Distributed Computing , Academic Press , Orlando, USA, ISBN 0-12-167350-2 Wikipedia revision 1352557684, retrieved 2026-11-18." F. 2026-11-17. https://en.wikipedia.org/wiki/Academic_Press. Accessed 24 November 2026.
Chicago "F. B. Chambers, D. A. Duce and G. P. Jones (1984), Distributed Computing , Academic Press , Orlando, USA, ISBN 0-12-167350-2 Wikipedia revision 1352557684, retrieved 2026-11-18." F. 2026-11-17. https://en.wikipedia.org/wiki/Academic_Press.
APA F. (2026). F. B. Chambers, D. A. Duce and G. P. Jones (1984), Distributed Computing , Academic Press , Orlando, USA, ISBN 0-12-167350-2 Wikipedia revision 1352557684, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Academic_Press
- a b Hayes, John P. (1978). Computer Architecture and Organization . McGraw-Hill. p. 245. ISBN 0-07-027363-4 . Wikipedia revision 1352557684, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "a b Hayes, John P. (1978). Computer Architecture and Organization . McGraw-Hill. p. 245. ISBN 0-07-027363-4 . Wikipedia revision 1352557684, retrieved 2026-11-18." a b Hayes, John P. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "a b Hayes, John P. (1978). Computer Architecture and Organization . McGraw-Hill. p. 245. ISBN 0-07-027363-4 . Wikipedia revision 1352557684, retrieved 2026-11-18." a b Hayes, John P. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA a b Hayes, John P. (2026). a b Hayes, John P. (1978). Computer Architecture and Organization . McGraw-Hill. p. 245. ISBN 0-07-027363-4 . Wikipedia revision 1352557684, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
- John L. Hennessy and David A. Patterson (1990), Computer Architecture: a quantitative approach , Morgan Kaufmann Publishers , Palo Alto, USA, ISBN 1-55860-069-8 Wikipedia revision 1352557684, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "John L. Hennessy and David A. Patterson (1990), Computer Architecture: a quantitative approach , Morgan Kaufmann Publishers , Palo Alto, USA, ISBN 1-55860-069-8 Wikipedia revision 1352557684, retrieved 2026-11-18." John L. 2026-11-17. https://en.wikipedia.org/wiki/John_L._Hennessy. Accessed 24 November 2026.
Chicago "John L. Hennessy and David A. Patterson (1990), Computer Architecture: a quantitative approach , Morgan Kaufmann Publishers , Palo Alto, USA, ISBN 1-55860-069-8 Wikipedia revision 1352557684, retrieved 2026-11-18." John L. 2026-11-17. https://en.wikipedia.org/wiki/John_L._Hennessy.
APA John L. (2026). John L. Hennessy and David A. Patterson (1990), Computer Architecture: a quantitative approach , Morgan Kaufmann Publishers , Palo Alto, USA, ISBN 1-55860-069-8 Wikipedia revision 1352557684, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/John_L._Hennessy
- Douglas Hofstadter (1980), Gödel, Escher, Bach: an eternal golden braid , Penguin Books , Harmondsworth, UK, ISBN 0-14-005579-7 Wikipedia revision 1352557684, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "Douglas Hofstadter (1980), Gödel, Escher, Bach: an eternal golden braid , Penguin Books , Harmondsworth, UK, ISBN 0-14-005579-7 Wikipedia revision 1352557684, retrieved 2026-11-18." Douglas Hofstadter (1980), Gödel, Escher, Bach: an eternal golden braid , Penguin Books , Harmondsworth, UK, ISBN 0-14-0. 2026-11-17. https://en.wikipedia.org/wiki/Douglas_Hofstadter. Accessed 24 November 2026.
Chicago "Douglas Hofstadter (1980), Gödel, Escher, Bach: an eternal golden braid , Penguin Books , Harmondsworth, UK, ISBN 0-14-005579-7 Wikipedia revision 1352557684, retrieved 2026-11-18." Douglas Hofstadter (1980), Gödel, Escher, Bach: an eternal golden braid , Penguin Books , Harmondsworth, UK, ISBN 0-14-0. 2026-11-17. https://en.wikipedia.org/wiki/Douglas_Hofstadter.
APA Douglas Hofstadter (1980), Gödel, Escher, Bach: an eternal golden braid , Penguin Books , Harmondsworth, UK, ISBN 0-14-0. (2026). Douglas Hofstadter (1980), Gödel, Escher, Bach: an eternal golden braid , Penguin Books , Harmondsworth, UK, ISBN 0-14-005579-7 Wikipedia revision 1352557684, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Douglas_Hofstadter
- Principles of Operation, Type 701 and Associated Equipment (PDF) . IBM . 1953. Wikipedia revision 1352557684, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "Principles of Operation, Type 701 and Associated Equipment (PDF) . IBM . 1953. Wikipedia revision 1352557684, retrieved 2026-11-18." Principles of Operation, Type 701 and Associated Equipment (PDF). 2026-11-17. http://bitsavers.org/pdf/ibm/701/24-6042-1_701_PrincOps.pdf. Accessed 24 November 2026.
Chicago "Principles of Operation, Type 701 and Associated Equipment (PDF) . IBM . 1953. Wikipedia revision 1352557684, retrieved 2026-11-18." Principles of Operation, Type 701 and Associated Equipment (PDF). 2026-11-17. http://bitsavers.org/pdf/ibm/701/24-6042-1_701_PrincOps.pdf.
APA Principles of Operation, Type 701 and Associated Equipment (PDF). (2026). Principles of Operation, Type 701 and Associated Equipment (PDF) . IBM . 1953. Wikipedia revision 1352557684, retrieved 2026-11-18. Retrieved November 24, 2026, from http://bitsavers.org/pdf/ibm/701/24-6042-1_701_PrincOps.pdf
- Harry Katzan (1971), Computer Organization and the System/370 , Van Nostrand Reinhold Company , New York, USA, LCCCN 72-153191 Wikipedia revision 1352557684, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "Harry Katzan (1971), Computer Organization and the System/370 , Van Nostrand Reinhold Company , New York, USA, LCCCN 72-153191 Wikipedia revision 1352557684, retrieved 2026-11-18." Harry Katzan (1971), Computer Organization and the System/370 , Van Nostrand Reinhold Company , New York, USA, LCCCN 72-. 2026-11-17. https://en.wikipedia.org/wiki/Van_Nostrand_Reinhold_Company. Accessed 24 November 2026.
Chicago "Harry Katzan (1971), Computer Organization and the System/370 , Van Nostrand Reinhold Company , New York, USA, LCCCN 72-153191 Wikipedia revision 1352557684, retrieved 2026-11-18." Harry Katzan (1971), Computer Organization and the System/370 , Van Nostrand Reinhold Company , New York, USA, LCCCN 72-. 2026-11-17. https://en.wikipedia.org/wiki/Van_Nostrand_Reinhold_Company.
APA Harry Katzan (1971), Computer Organization and the System/370 , Van Nostrand Reinhold Company , New York, USA, LCCCN 72-. (2026). Harry Katzan (1971), Computer Organization and the System/370 , Van Nostrand Reinhold Company , New York, USA, LCCCN 72-153191 Wikipedia revision 1352557684, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Van_Nostrand_Reinhold_Company
- Mead, Carver ; Conway, Lynn (1980). Introduction to VLSI Systems . Reading, USA: Addison-Wesley . ISBN 0-201-04358-0 . Wikipedia revision 1352557684, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "Mead, Carver ; Conway, Lynn (1980). Introduction to VLSI Systems . Reading, USA: Addison-Wesley . ISBN 0-201-04358-0 . Wikipedia revision 1352557684, retrieved 2026-11-18." Mead, Carver ; Conway, Lynn (1980). 2026-11-17. https://en.wikipedia.org/wiki/Carver_Mead. Accessed 24 November 2026.
Chicago "Mead, Carver ; Conway, Lynn (1980). Introduction to VLSI Systems . Reading, USA: Addison-Wesley . ISBN 0-201-04358-0 . Wikipedia revision 1352557684, retrieved 2026-11-18." Mead, Carver ; Conway, Lynn (1980). 2026-11-17. https://en.wikipedia.org/wiki/Carver_Mead.
APA Mead, Carver ; Conway, Lynn (1980). (2026). Mead, Carver ; Conway, Lynn (1980). Introduction to VLSI Systems . Reading, USA: Addison-Wesley . ISBN 0-201-04358-0 . Wikipedia revision 1352557684, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Carver_Mead
- B. Randall (1982), The Origins of Digital Computers , Springer-Verlag , Berlin, D Wikipedia revision 1352557684, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "B. Randall (1982), The Origins of Digital Computers , Springer-Verlag , Berlin, D Wikipedia revision 1352557684, retrieved 2026-11-18." B. 2026-11-17. https://en.wikipedia.org/wiki/Springer-Verlag. Accessed 24 November 2026.
Chicago "B. Randall (1982), The Origins of Digital Computers , Springer-Verlag , Berlin, D Wikipedia revision 1352557684, retrieved 2026-11-18." B. 2026-11-17. https://en.wikipedia.org/wiki/Springer-Verlag.
APA B. (2026). B. Randall (1982), The Origins of Digital Computers , Springer-Verlag , Berlin, D Wikipedia revision 1352557684, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Springer-Verlag
- Silberschatz, Abraham ; Gagne, Greg; Galvin, Peter B. (April 2018). Operating System Concepts . United States: Wiley . pp. 27, G-29. ISBN 978-1-119-32091-3 . Wikipedia revision 1352557684, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "Silberschatz, Abraham ; Gagne, Greg; Galvin, Peter B. (April 2018). Operating System Concepts . United States: Wiley . pp. 27, G-29. ISBN 978-1-119-32091-3 . Wikipedia revision 1352557684, retrieved 2026-11-18." Silberschatz, Abraham ; Gagne, Greg; Galvin, Peter B. 2026-11-17. https://en.wikipedia.org/wiki/Abraham_Silberschatz. Accessed 24 November 2026.
Chicago "Silberschatz, Abraham ; Gagne, Greg; Galvin, Peter B. (April 2018). Operating System Concepts . United States: Wiley . pp. 27, G-29. ISBN 978-1-119-32091-3 . Wikipedia revision 1352557684, retrieved 2026-11-18." Silberschatz, Abraham ; Gagne, Greg; Galvin, Peter B. 2026-11-17. https://en.wikipedia.org/wiki/Abraham_Silberschatz.
APA Silberschatz, Abraham ; Gagne, Greg; Galvin, Peter B. (2026). Silberschatz, Abraham ; Gagne, Greg; Galvin, Peter B. (April 2018). Operating System Concepts . United States: Wiley . pp. 27, G-29. ISBN 978-1-119-32091-3 . Wikipedia revision 1352557684, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Abraham_Silberschatz
- Walker, B. S. (1967). Introduction to Computer Engineering . London, UK: University of London Press . ISBN 0-340-06831-0 . Wikipedia revision 1352557684, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "Walker, B. S. (1967). Introduction to Computer Engineering . London, UK: University of London Press . ISBN 0-340-06831-0 . Wikipedia revision 1352557684, retrieved 2026-11-18." Walker, B. 2026-11-17. https://en.wikipedia.org/wiki/University_of_London_Press. Accessed 24 November 2026.
Chicago "Walker, B. S. (1967). Introduction to Computer Engineering . London, UK: University of London Press . ISBN 0-340-06831-0 . Wikipedia revision 1352557684, retrieved 2026-11-18." Walker, B. 2026-11-17. https://en.wikipedia.org/wiki/University_of_London_Press.
APA Walker, B. (2026). Walker, B. S. (1967). Introduction to Computer Engineering . London, UK: University of London Press . ISBN 0-340-06831-0 . Wikipedia revision 1352557684, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/University_of_London_Press
- Microcontroller Operation · retrieved 2026-11-17 · rev 1352557684
Cite this reference
MLA "Microcontroller Operation." Bates, Martin (2011). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Microcontroller Operation." Bates, Martin (2011). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Bates, Martin (2011). (2026). Microcontroller Operation. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
Cite this article
MLA
"Program counter." encyclopegia.org, 2026, https://encyclopegia.org/wiki/program-counter. Accessed 24 November 2026.
Chicago
"Program counter." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/program-counter.
APA
encyclopegia.org. (2026). Program counter. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/program-counter
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON