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.2 by cebix, 2000-09-25T17:52:34Z vs.
Revision 1.5 by gbeauche, 2004-06-14T14:23:59Z

# Line 16 | Line 16 | You should have received a copy of the G
16   along with this program; if not, write to the Free Software
17   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
18  
19 + #include <stdlib.h>
20   #include "dis-asm.h"
21   #include "floatformat.h"
22   #include "opintl.h"
# Line 673 | Line 674 | print_insn_arg (d, buffer, p0, addr, inf
674        else
675          return -2;
676  
676 #if 1
677      (*info->fprintf_func) (info->stream, "$%08x", addr + disp);
678 #else
677        (*info->print_address_func) (addr + disp, info);
680 #endif
678        break;
679  
680      case 'd':
# Line 777 | 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 1213 | 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