mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 22:25:28 +00:00
Add indirect JMP examples and fix typos in the documentation.
This commit is contained in:
@@ -2701,13 +2701,15 @@ Here's a list of all control commands and a description, what they do:
|
|||||||
|
|
||||||
<tag><tt>bracket_as_indirect</tt><label id="bracket_as_indirect"></tag>
|
<tag><tt>bracket_as_indirect</tt><label id="bracket_as_indirect"></tag>
|
||||||
|
|
||||||
Use <tt>[]</tt> intead of <tt>()</tt> for the indirect addressing mode.
|
Use <tt>[]</tt> instead of <tt>()</tt> for the indirect addressing modes.
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
lda [$82]
|
lda [$82]
|
||||||
lda [$82,x]
|
lda [$82,x]
|
||||||
lda [$82],y
|
lda [$82],y
|
||||||
|
jmp [$fffe]
|
||||||
|
jmp [table,x]
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
<em/Note:/ This should not be used in 65186 mode because it conflicts with
|
<em/Note:/ This should not be used in 65186 mode because it conflicts with
|
||||||
the 65816 instruction syntax for far addressing. See the section covering
|
the 65816 instruction syntax for far addressing. See the section covering
|
||||||
|
Reference in New Issue
Block a user