]> Shamusworld >> Repos - rmac/blobdiff - eagen0.c
Version bump for last commit. :-)
[rmac] / eagen0.c
index 60b7e4a6c40d564b76f526cb78186f952a15ff91..48355f97401f6b1c5bf82072138bbb070ccf8ebb 100644 (file)
--- a/eagen0.c
+++ b/eagen0.c
@@ -1,8 +1,8 @@
 //
-// RMAC - Reboot's Macro Assembler for all Atari computers
+// RMAC - Renamed Macro Assembler for all Atari computers
 // EAGEN0.C - Effective Address Code Generation
 //            Generated Code for eaN (Included twice by "eagen.c")
-// Copyright (C) 199x Landon Dyer, 2011-2020 Reboot and Friends
+// Copyright (C) 199x Landon Dyer, 2011-2021 Reboot and Friends
 // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
 // Source utilised with the kind permission of Landon Dyer
 //
@@ -65,7 +65,7 @@ int eaNgen(WORD siz)
                                }
 
                                if (optim_warn_flag)
-                                       warn("0(An) converted to (An)");
+                                       warn("o3: 0(An) converted to (An)");
 
                                return OK;
                        }
@@ -327,8 +327,10 @@ int eaNgen(WORD siz)
                if (w) // Defined
                {
                        if (CHECK_OPTS(OPT_PC_RELATIVE))
-                               if (aNexattr&(DEFINED | REFERENCED | EQUATED) == DEFINED | REFERENCED)
-                                       return error("relocation not allowed");
+                       {
+                               if ((aNexattr & (DEFINED | REFERENCED | EQUATED)) == (DEFINED | REFERENCED))
+                                       return error("relocation not allowed when o10 is enabled");
+                       }
 
                        if (tdb)
                                MarkRelocatable(cursect, sloc, tdb, MLONG, NULL);