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

XBA: Difference between revisions

From SnesLab
Jump to: navigation, search
(created page)
 
(added basic info)
Line 1: Line 1:
'''XBA''' is an instruction that exchanges the high byte (B) and low byte (typically called A) of the [[C accumulator]].  It works even in [[6502 emulation mode]].  In [[65816 native mode]], its mnemonic is still "XBA" even when the accumulator is 16-bits wide.
'''XBA''' is an instruction that exchanges the high byte (B) and low byte (typically called A) of the [[C accumulator]].  It works even in [[6502 emulation mode]].  In [[65816 native mode]], its mnemonic is still "XBA" even when the accumulator is 16-bits wide.
{| class="wikitable" style="float:right;clear:right;width:30%"
!colspan="8"|Basic Info
|+
|'''Addressing Mode'''
|'''Opcode'''
|'''Length'''
|'''Speed'''
|+
|implied
|EB
|1 byte
|3 cycles
|}


{| class="wikitable" style="float:right;clear:right;width:30%"
{| class="wikitable" style="float:right;clear:right;width:30%"

Revision as of 22:37, 30 April 2023

XBA is an instruction that exchanges the high byte (B) and low byte (typically called A) of the C accumulator. It works even in 6502 emulation mode. In 65816 native mode, its mnemonic is still "XBA" even when the accumulator is 16-bits wide.

Basic Info
Addressing Mode Opcode Length Speed
implied EB 1 byte 3 cycles
Flags Clobbered
N V M X D I Z C