We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
Memory/Accumulator Select: Difference between revisions
From SnesLab
(→Reference: hid archive URL for E&L) |
(list of instructions whose behavior it affects) |
||
Line 1: | Line 1: | ||
The '''Memory/Accumulator Select''' (M) flag exists in the [[processor status register]] (bit 5) of the [[65c816]]. It indicates whether the [[accumulator]] is 8 or 16 bits wide: | The '''Memory/Accumulator Select''' (M) flag exists in the [[processor status register]] (bit 5) of the [[65c816]]. It indicates whether the [[accumulator]] is 8 or 16 bits wide: | ||
* When clear, the accumulator is 16 bits wide. | * When clear, the accumulator is 16 bits wide. It can only be clear in [[native mode]]. | ||
* When set, the accumulator is 8 bits wide, but the high byte (B) is still retained. | * When set, the accumulator is 8 bits wide, but the high byte (B) is still retained. | ||
Line 11: | Line 11: | ||
* [[RTI]] | * [[RTI]] | ||
It affects the behavior of (incomplete list): | |||
* [[LDA]] | |||
* [[STA]] | |||
There are no BMS or BMC instructions that examine this flag. | There are no BMS or BMC instructions that examine this flag. |
Revision as of 22:27, 9 August 2024
The Memory/Accumulator Select (M) flag exists in the processor status register (bit 5) of the 65c816. It indicates whether the accumulator is 8 or 16 bits wide:
- When clear, the accumulator is 16 bits wide. It can only be clear in native mode.
- When set, the accumulator is 8 bits wide, but the high byte (B) is still retained.
It can be affected by:
It affects the behavior of (incomplete list):
There are no BMS or BMC instructions that examine this flag.
See Also
Reference
- Eyes & Lichty, page 422, Table 18.2. 65x Flags.