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

AND (SPC700)

From SnesLab
Revision as of 21:32, 13 July 2024 by Xetheria (talk | contribs) (→‎External Links: added anomie link)
Jump to: navigation, search
Basic Info
Addressing Mode Opcode Length Speed
Immediate 28 2 bytes 2 cycles
Implied Indirect (type 1) 26 1 byte 3 cycles
Direct Page 24 2 bytes 3 cycles
Direct Page Indexed by X 34 2 bytes 4 cycles
Absolute 25 3 bytes 4 cycles
Absolute Indexed by X 35 3 bytes 5 cycles
Absolute Indexed by Y 36 3 bytes 5 cycles
Direct Page Indexed by X 27 2 bytes 6 cycles
Direct Page Indirect Indexed by Y 37 2 bytes 6 cycles
Implied Indirect (type 1) 39 1 bytes 5 cycles
Direct Page 29 3 bytes 6 cycles
Direct Page Immediate 38 3 bytes 5 cycles
Flags Affected
N V P B H I Z C
. . . . . .

AND is an SPC700 instruction that performs a logical conjunction.

The operands are stored in the instruction stream in the opposite order they appear in the assembler source. In the assembler source, the operand on the right is the source and the operand on the left is the destination.

Syntax

AND A, #imm
AND A, (X)
AND A, dp
AND A, dp+X
AND A, !abs
AND A, !abs+X
AND A, !abs+Y
AND A, [dp+X]
AND A, [dp]+Y
AND (X), (Y)
AND dp<d>, dp<s>
AND dp, #imm

See Also

External Links