Add optional feature to use brackets instead of parens for 6502 indirect addressing.

This commit is contained in:
John Brandwood
2016-02-25 12:40:31 -08:00
parent f7cdfbf5cb
commit d23db09f7f
6 changed files with 55 additions and 20 deletions

View File

@@ -2699,6 +2699,20 @@ Here's a list of all control commands and a description, what they do:
at character is not allowed to start an identifier, even with this
feature enabled.
<tag><tt>bracket_as_indirect</tt><label id="bracket_as_indirect"></tag>
Use <tt>[]</tt> intead of <tt>()</tt> for the indirect addressing mode.
Example:
<tscreen><verb>
lda [$82]
lda [$82,x]
lda [$82],y
</verb></tscreen>
<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
<tt/<ref id="address-sizes" name="address sizes">/ for more information.
<tag><tt>c_comments</tt><label id="c_comments"></tag>
Allow C like comments using <tt>/*</tt> and <tt>*/</tt> as left and right