[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bochs-dev
Subject:    Re: [Bochs-developers] Instruction Mnemonic
From:       "Stanislav" <stlintel () gmail ! com>
Date:       2011-08-08 5:49:48
Message-ID: 003401cc558e$fda7c790$f8f756b0$ () gmail ! com
[Download RAW message or body]

You can fetch instruction bytes from that PC and call Bochs internal
disassembler to decode instruction again.
But better if you just save the mnemonic together with PC :)

Stanislav

-----Original Message-----
From: César [mailto:divcesar@gmail.com] 
Sent: Monday, August 08, 2011 1:52 AM
To: bochs-developers@lists.sourceforge.net
Subject: [Bochs-developers] Instruction Mnemonic

Hello.

I'm implementing an algorithm and at some points I save the current
instruction PC (I use BX_CPU(cpu_id)->get_instruction_pointer()).
Later, for debug purpose I need output the mnemonic of the instruction that
have the pc saved. How can I get the opcode of the instruction based on its
PC?


César.

----------------------------------------------------------------------------
--
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA The
must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
bochs-developers mailing list
bochs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-developers


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
bochs-developers mailing list
bochs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-developers

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic