|
|
|
|
|
by _y5hn
2030 days ago
|
|
Program Counter = Counter used for programs. Counts bytes for position of next instruction. Within an early context and machine code vs hw level, not totally unreasonable as a legacy term. "Counter" was often used as name, even when starting at 0. Wrong before internet or just pioneers? And what wrongs do we now do, or not? |
|
Actual counting on real hardware does happen. For example, x86 has the CX/ECX/RCX register for string operations. That has a far better justification for being called a program counter, but still that would be awful terminology. Another example is the CTR register of PowerPC, commonly used with an instruction that decrements it and then conditionally branches to do a loop. Even a cycle counter has better justification for being called a program counter.