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

Direct Page Immediate: Difference between revisions

From SnesLab
Jump to: navigation, search
(created page)
 
(spc700 versions of mnemonics)
Line 6: Line 6:
The following opcodes support direct page immediate addressing:
The following opcodes support direct page immediate addressing:


* [[ADC]] (opcode 98h)
* [[ADC (SPC700)]] (opcode 98h)
* [[AND]] (opcode 38h)
* [[AND (SPC700)]] (opcode 38h)
* [[SBC]] (opcode B8h)
* [[SBC (SPC700)]] (opcode B8h)
* [[OR]] (opcode 18h)
* [[OR (SPC700)]] (opcode 18h)
* [[EOR]] (opcode 58h)
* [[EOR (SPC700)]] (opcode 58h)
* [[CMP]] (opcode 78h)
* [[CMP (SPC700)]] (opcode 78h)
* [[MOV]] (opcode 8Fh)
* [[MOV]] (opcode 8Fh)



Revision as of 15:15, 27 June 2024

Some SPC700 opcodes use both Direct Page and Immediate addressing.

As it appears in assembler source, the left operand is an index into the direct page, and the right operand is an immediate value.

The following opcodes support direct page immediate addressing: