]> Shamusworld >> Repos - rmac/blobdiff - eagen0.c
Version bump. :-)
[rmac] / eagen0.c
index 8ac72ed3824ff3e2cd7055805d3ff276439aa590..88ebdb3bee2cee83a1425694a3cfd5e8b61f2cfb 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,10 +65,14 @@ 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;
                        }
 
-                       if (v + 0x8000 >= 0x18000)
+                       if ((v + 0x8000) >= 0x18000)
                                return error(range_error);
 
                        D_word(v);