Implementation of encoding scheme

Hello,

i want to implement new encoding scheme in x86 like EVEX. how to do this?

Please help.

Thank You

Regards