X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=mach.c;h=71fd3cb24bfbd3d54faeeb19c0fd3ea2f47d76e7;hp=ca7e17c7d3bd546b291be3ac9bf217205050a314;hb=ff2052bcaa1428a33a202822a81a6f9b8e567ef4;hpb=052be802baa4836564801c780b1d432cfe17c576 diff --git a/mach.c b/mach.c index ca7e17c..71fd3cb 100644 --- a/mach.c +++ b/mach.c @@ -7,19 +7,22 @@ // #include "mach.h" +#include "eagen.h" #include "error.h" -#include "sect.h" #include "direct.h" -#include "token.h" #include "procln.h" #include "riscasm.h" #include "rmac.h" +#include "sect.h" +#include "token.h" #define DEF_KW #include "kwtab.h" +// Exported variables +int movep = 0; // Global flag to indicate we're generating a movep instruction -// Fucntion prototypes +// Function prototypes int m_unimp(WORD, WORD), m_badmode(WORD, WORD), m_bad6mode(WORD, WORD), m_bad6inst(WORD, WORD); int m_self(WORD, WORD); int m_abcd(WORD, WORD); @@ -54,9 +57,6 @@ char siz_error[] = "bad size specified"; char undef_error[] = "undefined expression"; char fwd_error[] = "forward or undefined expression"; -extern int ea0gen(WORD); -extern int ea1gen(WORD); - // Include code tables MNTAB machtab[] = { // { (WORD)-1, (unsigned long)-1L, (unsigned long)-1L, 0x0000, 0, m_badmode }, // 0 @@ -499,7 +499,6 @@ int m_moveq(WORD inst, WORD siz) return 0; } -int movep = 0; // Global flag to indicate we're generating a movep instruction // // movep Dn, disp(An) -- movep disp(An), Dn //