Re: spim-like x86 simulator



On Feb 25, 6:50 am, Tony Winslow <spamt...@xxxxxxxxxx> wrote:
Our team is developing a spim-like x86 simulator. Our goal is to run x86
executable file of multiple Operating Systems in our simulator. We find
that the x86 instruction format is extremely complicated. Is there any
good document other than Intel's doc. that explains the instruction
format? What I want is a doc. which is easy to read and understand.
Thank you!

Well, in other docs there may be mistakes. That doesn't mean, however,
intel's documentation doesn't have them. :) You can also look at AMD's
documentation. For the most part, the information in both should be
the same. When it's not, there's either a mistake in the document or
that's a known difference between the intel's and AMD's CPUs. If x86
instructions are completely new to you, find some tutorial or article
to get an idea of how the encoding works. And then switch to the CPU
manual to avoid possible incorrections and incompleteness of the
article. Oh, btw, if you have very little experience of x86 CPU/
assembly programming, consider learning this too -- will save some
time.

Alex

.



Relevant Pages

  • Re: non load/store architecture?
    ... Programmers can write great code on a RISC ... Especially in a PC marketplace dominated by the x86. ... Lots of registers and an orthogonal instruction set are important - both have these. ... The lack of registers means much more memory IO, which causes stalls and requires complex scheduling. ...
    (comp.arch.embedded)
  • Re: [PATCH] x86 - Enhance DEBUG_RODATA support - alternatives
    ... has been pulled out of the x86 tree. ... text_poke required to support this. ... correctly and so the CPU HOTPLUG special case can be removed. ... When you use this code to patch more than one byte of an instruction ...
    (Linux-Kernel)
  • Re: Free FORTH implementations?
    ... There is some older information by Phillip Koopman on instruction usage: ... The addresses are what a FORTH interpreter uses to call ... x86 16-bit code can be similarly sized or smaller because there are ... one with an average instruction size of two or less and the other ...
    (comp.lang.forth)
  • Re: thought: "Mini-x86"...
    ... You will try to execute int 0x80. ... This will fail at load time, the int instruction is not permitted. ... NaCl uses x86 fault mechanisms and segmentation ... This make NaCl only useful on x86. ...
    (comp.lang.asm.x86)
  • Re: atomic increment and fetch on intel ia32
    ... Is "inc mem" some kind of assembly instruction on x86? ... What do you mean by a lock prefix? ... Anyway, x86 inc can increment a register or a memory location, and can ...
    (comp.programming.threads)