Skip to content

Commit

Permalink
deprecate lda a
Browse files Browse the repository at this point in the history
  • Loading branch information
randomdude999 committed Jan 23, 2024
1 parent 6454cf8 commit 580ce2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ <h3>Deprecated features:</h3>
<li><code>incbin file.bin -&gt; target</code>: put an <code>org</code> or <code>freespace</code> command before the incbin.</li>
<li><code class="65c816_asar">if a = b</code>: use <code class="65c816_asar">if a == b</code> instead.</li>
<li>Comments starting with <code>;[[</code> : These mark the start of block comments in Asar 2.0, so either remove the <code>[[</code> for the time being, or make the commented line end with a <code>]]</code>.</li>
<li>Using <code>A</code> as a label name ambiguously, e.g. <code>lda a</code>: in Asar 2 this will be interpreted as trying to use the "A" addressing mode, and will give an error. You can use <code>A+0</code> if you really must refer to the label as is.</li>
</ul></div>

<hr />
Expand Down
1 change: 1 addition & 0 deletions src/asar/arch-65816.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ bool asblock_65816(char** word, int numwords)
opAFallback:
snes_label tmp;
if (pass && !labelval(par, &tmp)) return false;
asar_throw_warning(1, warning_id_feature_deprecated, "using A as a label name", "rename your label to _a or something, or use a+0 to disambiguate the addressing mode");
len=getlen(par);
num=tmp.pos;
}
Expand Down

0 comments on commit 580ce2e

Please sign in to comment.