File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed
Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments