Fix the disassmbly of SH instructions which have an unsigned 8-bit immediate operand.
[deliverable/binutils-gdb.git] / opcodes / sh-dis.c
index 5d771a53a50a5732c43d91f6a860faa7550bf898..00bcffa7c712be4573470e94f1b11969738622b6 100644 (file)
@@ -597,7 +597,7 @@ print_insn_sh (bfd_vma memaddr, struct disassemble_info *info)
            case IMM1_4BY4:
              imm = nibs[3] << 2;
              goto ok;
-           case IMM0_8:
+           case IMM0_8S:
            case IMM1_8:
              imm = (nibs[2] << 4) | nibs[3];
              disp = imm;
@@ -605,6 +605,10 @@ print_insn_sh (bfd_vma memaddr, struct disassemble_info *info)
              if (imm & 0x80)
                imm -= 0x100;
              goto ok;
+           case IMM0_8U:
+             disp = imm = (nibs[2] << 4) | nibs[3];
+             has_disp = 1;
+             goto ok;
            case PCRELIMM_8BY2:
              imm = ((nibs[2] << 4) | nibs[3]) << 1;
              relmask = ~(bfd_vma) 1;
This page took 0.039629 seconds and 4 git commands to generate.