Mercurial > hg > index.cgi
diff docs/manual/x659.html @ 455:cad5937314cb
Add operandsizewarning pragma
Add operandsizewarning pragma that will raise warnings for certain operands
if the operand size could be smaller. (Long branch used instead of short
branch, for instance.)
author | William Astle <lost@l-w.ca> |
---|---|
date | Fri, 16 Feb 2018 22:53:46 -0700 |
parents | fc166b3bbae3 |
children | a71206ed966c |
line wrap: on
line diff
--- a/docs/manual/x659.html Fri Feb 16 22:52:44 2018 -0700 +++ b/docs/manual/x659.html Fri Feb 16 22:53:46 2018 -0700 @@ -17,7 +17,7 @@ HREF="x595.html"><LINK REL="NEXT" TITLE="Convenience Instructions" -HREF="x795.html"></HEAD +HREF="x800.html"></HEAD ><BODY CLASS="SECTION" BGCOLOR="#FFFFFF" @@ -59,7 +59,7 @@ ALIGN="right" VALIGN="bottom" ><A -HREF="x795.html" +HREF="x800.html" ACCESSKEY="N" >Next</A ></TD @@ -198,7 +198,7 @@ >These pragmas enable convenience instructions extending the 6809 and 6309 instruction sets respectively. For more information, see <A -HREF="x795.html" +HREF="x800.html" >Section 3.11</A >.</P ></DD @@ -399,6 +399,19 @@ applies when the assembler is left to guess what the operand size is.</P ></DD ><DT +>operandsizewarning</DT +><DD +><P +>Enabling this pragma will cause LWASM to show a warning when it +detects that a smaller addressing mode could be used for an instruction. +This is particularly useful for finding places where long branches are used +where short branches could be used instead. It will also show the warnings +for indexing offsets (regardless of whether the operand size is +forced).</P +><P +>As of LWASM 4.16, no other checks are performed.</P +></DD +><DT >qrts</DT ><DD ><P @@ -507,7 +520,7 @@ ALIGN="right" VALIGN="top" ><A -HREF="x795.html" +HREF="x800.html" ACCESSKEY="N" >Next</A ></TD