X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=sect.c;h=b20542bbd172c554aa375c1bbb513724112ea3fe;hb=e298f2149d654ec5c5db99f96066ec62d77f8550;hp=c00a9d6990bb2635928ec0b54b3ff87bcc95989d;hpb=5b53a2a9e5340f11db9670cda34c4da4fd19ea85;p=rmac diff --git a/sect.c b/sect.c index c00a9d6..b20542b 100644 --- a/sect.c +++ b/sect.c @@ -18,7 +18,8 @@ #include "riscasm.h" #include "symbol.h" #include "token.h" - +#define DEF_REGRISC +#include "riscregs.h" // Function prototypes void MakeSection(int, uint16_t); @@ -720,6 +721,7 @@ int ResolveFixups(int sno) } else if ((dw & FUMASKRISC) == FU_REGONE) { + eval -= REGRISC_R0; if (eval > 31) { error("register one value out of range"); @@ -733,6 +735,7 @@ int ResolveFixups(int sno) } else if ((dw & FUMASKRISC) == FU_REGTWO) { + eval -= REGRISC_R0; if (eval > 31) { error("register two value out of range");