Im currently trying to write a disassembler. I found the following list of opcodes and their meanings, so i decided to parse it at runtime: http://mprolab.teipir.gr/vivlio80X86/pentium.txt
But i am stuck at the opcode 0x00: It is followed by a reg/modbyte. Parsing it was not much of a problem for me. But i'm having trouble with the Scale-Index-Byte: If you actually specify esp as index register, it actually means that there is no index register. The same applys for the base register with ebp. But i've tryed it with c++ inline assembler: It is possible to compile: "add [ebp*2+ebp],cl"
So how can ebp be used as base register when using ebp as base register actually means using no base register at all !?