X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=amode.c;h=f0734ea5916dc8f6c86007954062fd162372b1e6;hp=b09b2da57cb63fc4b6880e4e320c9f0d9811d1c6;hb=60f204cb9e3905100da0d89f14bb40db764acd9e;hpb=1feb728a9eb579b6441daf0124d81483f600365c diff --git a/amode.c b/amode.c index b09b2da..f0734ea 100644 --- a/amode.c +++ b/amode.c @@ -1,7 +1,7 @@ // // RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System // AMODE.C - Addressing Modes -// Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends +// Copyright (C) 199x Landon Dyer, 2017 Reboot and Friends // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986 // Source utilised with the kind permission of Landon Dyer // @@ -78,7 +78,7 @@ int amode(int acount) #define CHK_FOR_DISPn CheckForDisp0 #include "parmode.h" - // If caller wants only one mode, return just one (ignore comma); + // If caller wants only one mode, return just one (ignore comma); // If there is no second addressing mode (no comma), then return just one anyway. nmodes = 1; @@ -146,7 +146,7 @@ int reglist(WORD * a_rmask) if (*tok >= KW_D0 && *tok <= KW_A7) cnt = *tok++ & 15; - else + else return error("register list syntax"); if (cnt < r) @@ -154,7 +154,7 @@ int reglist(WORD * a_rmask) cnt -= r; } - else + else cnt = 0; while (cnt-- >= 0)