Display instruction address in instrument
Max <[email protected]> Wed, 23 Nov 2016 16:52:34 +0100
| Newsgroups | gmane.comp.emulators.bochs.devel |
|---|---|
| Message-ID | <[email protected]> |
Good day, I'm new to Bochs and C++, that's why it's probably an easy question, sorry, but I already spend few hours on the source code, without success. I'm trying to adapt the function: void bx_print_instruction(unsigned cpu, const instruction_t *i) defined in: instrument/example0/instrument.cc to display the memory address too, but I can't make it. I tried to find the right attribut/method but didn't find. I tried to pass EIP, but as the code runs in real mode (mbr), the CS part is missing. There's probably an easier way to do it than adding parameters to: BX_INSTR_BEFORE_EXECUTION BX_INSTR_AFTER_EXECUTION Any hint ? Regards, Max ------------------------------------------------------------------------------