Skip to content

Commit c36a025

Browse files
author
Dave Shepperd
committed
Added support for the 'z' tag type used by mac68k. Rolled version.
1 parent e47ec7f commit c36a025

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

pass2.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,34 @@ int pass2(void)
10491049
*ubp = (token_value)&0xFF;
10501050
break;
10511051
}
1052+
case 'z':
1053+
{
1054+
i = 1; /* signed char branch offset */
1055+
if ( token_value == 0 || (token_value&1) )
1056+
{
1057+
const char *s1;
1058+
if ( !token_value )
1059+
{
1060+
if ( options->octal )
1061+
s1 = "Illegal branch offset of %lo at location %lo. Replaced with -2";
1062+
else
1063+
s1 = "Illegal branch offset of %lX at location 0x%X. Replaced with -2";
1064+
}
1065+
else
1066+
{
1067+
if ( options->octal )
1068+
s1 = "Illegal odd branch offset of %lo at location %lo. Replaced with -2";
1069+
else
1070+
s1 = "Illegal odd branch offset of 0x%lX at location 0x%X. Replaced with -2";
1071+
}
1072+
sprintf(emsg, s1, token_value, pass2_pc );
1073+
err_msg(MSG_ERROR, emsg);
1074+
disp_offset(); /* display error offset */
1075+
*ubp = -2;
1076+
break;
1077+
}
1078+
}
1079+
/* FALL THROUGH TO 's' */
10521080
case 's':
10531081
{
10541082
i = 1; /* signed char */

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
#define REVISION "V10.16" /* LLF version number */
19+
#define REVISION "V10.17" /* LLF version number */

0 commit comments

Comments
 (0)