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" |
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': |
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: |
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, ")"); |