We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
Program Counter Relative Long Addressing: Difference between revisions
From SnesLab
(→References: Clark link) |
(effective address calculation) |
||
Line 1: | Line 1: | ||
'''Program Counter Relative Long Addressing''' is supported by [[BRL]] only (opcode 82). | '''Program Counter Relative Long Addressing''' is supported by [[BRL]] only (opcode 82). | ||
The effective address is generated by adding the 16-bit signed operand to the [[program counter]]. The [[program bank register]] remains unchanged. | |||
==== Syntax ==== | ==== Syntax ==== |
Revision as of 05:28, 24 July 2024
Program Counter Relative Long Addressing is supported by BRL only (opcode 82).
The effective address is generated by adding the 16-bit signed operand to the program counter. The program bank register remains unchanged.
Syntax
BRL label
See Also
References
- Eyes & Lichty page 400, https://archive.org/details/0893037893ProgrammingThe65816/page/400
- section 3.5.20 of 65c816 datasheet, https://westerndesigncenter.com/wdc/documentation/w65c816s.pdf
- Clark, Bruce. http://www.6502.org/tutorials/65c816opcodes.html#5.18