diff docs/manual.docbook.sgml @ 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 6b19418c465c
children e97f9a302c6a
line wrap: on
line diff
--- a/docs/manual.docbook.sgml	Fri Feb 16 22:52:44 2018 -0700
+++ b/docs/manual.docbook.sgml	Fri Feb 16 22:53:46 2018 -0700
@@ -1975,6 +1975,22 @@
 </varlistentry>
 
 <varlistentry>
+<term>operandsizewarning</term>
+<listitem>
+
+<para>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).</para>
+
+<para>As of LWASM 4.16, no other checks are performed.</para>
+
+</listitem>
+</varlistentry>
+
+<varlistentry>
 <term>qrts</term>
 <listitem>
 <para>