We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

Program Counter

From SnesLab
Revision as of 19:36, 8 August 2024 by Xetheria (talk | contribs) (→‎References: hid archive URL for E&L)
Jump to: navigation, search

The Program Counter (PC) keeps track of which instruction is currently executing. If incremented past FFFFh, it wraps around to zero.

The 6502 had 16-bit absolute addressing but only an 8-bit adder, so in emulation mode branches that cross a page boundary incur a one cycle penalty. 65c816 native mode has no such penalty because the full 16-bit adder is used.

On the S-SMP it is 16 bits wide. The low byte is called PCL and the high byte is called PCH.

See Also

References