]> Shamusworld >> Repos - rmac/blobdiff - object.c
6502 support added back from original Madmac sources!
[rmac] / object.c
index cbedaab6b0b2cdf5907af53d377a42cb4dc5b8ab..3cae5479de5cbfca362f74ba6537720e661db3e8 100644 (file)
--- a/object.c
+++ b/object.c
@@ -12,7 +12,7 @@
 #include "riscasm.h"
 #include "sect.h"
 #include "symbol.h"
-
+extern void m6502obj(int ofd);
 
 //#define DEBUG_ELF
 
@@ -752,6 +752,11 @@ for(int j=0; j<i; j++)
                        free(strtable);
                }
        }
+    else if (obj_format == XEX)
+    {
+        // Just write the object file
+        m6502obj(fd);
+    }
 
        return 0;
 }