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

Accumulator: Difference between revisions

From SnesLab
Jump to: navigation, search
(linkify Labiak)
(TDC can zero it)
Line 1: Line 1:
An '''Accumulator''' is a very fast register inside a processor that acts as a mathematical scratch pad.
An '''Accumulator''' is a very fast register inside a processor that acts as a mathematical scratch pad.


The [[65c816]]'s accumulator can be either 8 or 16 bits in size, as configured by the M flag.  [[Labiak]] calls this 16-bit memory mode.
The [[65c816]]'s accumulator can be either 8 or 16 bits in size, as configured by the [[m flag]].  [[Labiak]] calls this 16-bit memory mode.  When the [[direct page]] is coincident with the [[zero page]], [[TDC]] is a good way to zero it.


The high byte ("B") is still retained even when the accumulator is 8 bits wide and can be accessed with [[XBA]].
The high byte ("B") is still retained even when the accumulator is 8 bits wide and can be accessed with [[XBA]].

Revision as of 00:32, 10 August 2024

An Accumulator is a very fast register inside a processor that acts as a mathematical scratch pad.

The 65c816's accumulator can be either 8 or 16 bits in size, as configured by the m flag. Labiak calls this 16-bit memory mode. When the direct page is coincident with the zero page, TDC is a good way to zero it.

The high byte ("B") is still retained even when the accumulator is 8 bits wide and can be accessed with XBA.

The S-SMP's accumulator is always 8 bits wide.

See Also

References