ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/mon/src/disass/m68k-dis.c
(Generate patch)

Comparing mon/src/disass/m68k-dis.c (file contents):
Revision 1.4 by gbeauche, 2003-04-13T09:54:26Z vs.
Revision 1.5 by gbeauche, 2004-06-14T14:23:59Z

# Line 674 | Line 674 | print_insn_arg (d, buffer, p0, addr, inf
674        else
675          return -2;
676  
677 #if 1
678      /* FIXME: We are bound to have 32-bit addresses even if cxmon is
679         requested to run in real mode, because m68k is 32-bit.  */
680      (*info->fprintf_func) (info->stream, "$%08x", (uint32)(addr + disp));
681 #else
677        (*info->print_address_func) (addr + disp, info);
683 #endif
678        break;
679  
680      case 'd':
# Line 780 | Line 774 | print_insn_arg (d, buffer, p0, addr, inf
774  
775              case 2:
776                val = NEXTWORD (p);
777 <              (*info->fprintf_func) (info->stream, "($%08x,pc)", addr + val);
777 >              (*info->fprintf_func) (info->stream, "(");
778 >              (*info->print_address_func) (addr + val, info);
779 >              (*info->fprintf_func) (info->stream, ",pc)");
780                break;
781  
782              case 3:
# Line 1216 | Line 1212 | print_indexed (basereg, p, addr, info)
1212        buf[0] = '\0';
1213      }
1214    if (outer_disp)
1215 <    (*info->fprintf_func) (info->stream, "],$%08x", outer_disp);
1215 >    (*info->fprintf_func) (info->stream, "],$%08x", (uint32)outer_disp);
1216    else
1217 <    (*info->fprintf_func) (info->stream, "]", outer_disp);
1217 >    (*info->fprintf_func) (info->stream, "]");
1218    if (buf[0] != '\0')
1219      (*info->fprintf_func) (info->stream, ",%s", buf);
1220    (*info->fprintf_func) (info->stream, ")");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines