Re: extracting the opcode of the instruction

"Stanislav" <[email protected]>
Newsgroups gmane.comp.emulators.bochs.devel
Message-ID <[email protected]>
This info is available during fetchdecode function (in b1 variable) but not
passed into bxInstruction_c.
There is no use or this field after decoding.

Stanislav

-----Original Message-----
From: Xin Tong [mailto:[email protected]] 
Sent: Wednesday, November 07, 2012 9:39 PM
To: Stanislav
Cc: [email protected]
Subject: Re: [Bochs-developers] extracting the opcode of the instruction

I want the opcode bytes. not all the bytes of the instruction.

i.e. the first byte of the instruction. or the first two bytes in some cases

i.e. 0x40 for inc instruction.

Xin


On Wed, Nov 7, 2012 at 1:03 PM, Stanislav <[email protected]> wrote:
> Define the x86 opcode.
> If you mean opcodes bytes (up to 15), they could be inside 
> bxInstruction_c if compiled with BX_INSTR_STORE_OPCODE_BYTES define in
instr.h.
> For all other stuff the ia_opcode field in the instruction is usually 
> enough.
>
> stanislav
>
> -----Original Message-----
> From: Xin Tong [mailto:[email protected]]
> Sent: Wednesday, November 07, 2012 6:24 PM
> To: [email protected]
> Subject: [Bochs-developers] extracting the opcode of the instruction
>
> I would like to get the opcode of the instruction. it seems that the 
> ia_opcode in the bxInstruction_c structure is not the x86 opcode. are 
> there any other places i can get the ia_opcodes of the instruction ?
>
> Xin
>
> ----------------------------------------------------------------------
> ------
> --
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command 
> center Diagnose problems and improve visibility into emerging IT 
> issues Automate, monitor and manage. Do more in less time with Central 
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> bochs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bochs-developers
>


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.