]> Shamusworld >> Repos - rmac/blobdiff - eagen0.c
Added .opt directive with similar syntax to command line. Example syntax: '.opt ...
[rmac] / eagen0.c
index 8ac72ed3824ff3e2cd7055805d3ff276439aa590..bf4ba3da6ab64fdb093df39ac9944b82d8f109d5 100644 (file)
--- a/eagen0.c
+++ b/eagen0.c
@@ -39,7 +39,7 @@ int eaNgen(WORD siz)
                        if (tdb)
                                rmark(cursect, sloc, tdb, MWORD, NULL);
 
-                       if ((v == 0) && optim_flag)
+                       if ((v == 0) && optim_flags[OPT_INDIRECT_DISP])
                        {
                                // If expr is 0, size optimise the opcode.
                                // Generally the lower 6 bits of the opcode
@@ -65,6 +65,10 @@ int eaNgen(WORD siz)
                                        chptr_opcode[0] |= ((0x0080 >> 8) & 255); // slap in 010 bits
                                        chptr_opcode[1] |= 0x0080 & 255;          // slap in 010 bits
                                }
+
+                               if (sbra_flag)
+                                       warn("0(An) converted to (An)");
+
                                return OK;
                        }