[fpc-devel] x86ins.dat bytes format description

Florian Klämpfl florian at freepascal.org
Sun Dec 13 20:21:17 CET 2015


Am 07.11.2015 um 22:25 schrieb Bishop:
> 
> Hi all. I am working on adding support of TSX instructions to FPC compiler. So i need modify
> x86ins.dat. In sections "bytes" this file contains not only opcode byte. In aditional it contains
> some control codes that describe generation of prefixes, schema of operands coding and etc. In some
> message on this mailing list i found that:
> \ 361 = prefix 066h for SSE instruction
> \ 362 = new flag VEX (starting with 0xC5 or 0xC4)
> \ 372 = new flag VEX-CODE include prefix 0x0F3A
> \ 75 = VEX-BYTE contains operand no. 2
> \ 120 = operands 1 and 3 encoded in MODRM-Byte
> \ 77 = immediate byte (bit 4-7) contains 4th operand
> \ 00 = immediate byte (bit 0-3) = 0
> 
> But i need information about other control codes. Can someone give me advise: where i can found full
> description of those control codes?

fpc/compiler/x86/aasmcpu.pas starting at line 2464.



More information about the fpc-devel mailing list