1 |
|
/* |
2 |
|
* mon_disass.cpp - Disassemblers |
3 |
|
* |
4 |
< |
* mon (C) 1997-2000 Christian Bauer, Marc Hellwig |
4 |
> |
* cxmon (C) 1997-2002 Christian Bauer, Marc Hellwig |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
166 |
|
return num; |
167 |
|
} |
168 |
|
|
169 |
< |
int disass_x86(FILE *f, uint32 adr) |
169 |
> |
int disass_x86(FILE *f, uint32 adr, bool i8086) |
170 |
|
{ |
171 |
|
// Initialize info for GDB disassembler |
172 |
|
disassemble_info info; |
175 |
|
sfile.buffer = buf; |
176 |
|
sfile.current = buf; |
177 |
|
INIT_DISASSEMBLE_INFO(info, (FILE *)&sfile, (fprintf_ftype)mon_sprintf); |
178 |
+ |
if (i8086) |
179 |
+ |
info.mach = bfd_mach_i386_i8086; |
180 |
|
|
181 |
|
// Disassemble instruction |
182 |
|
lookup_lowmem = false; |