Author Topic: Operand Encoding  (Read 17947 times)

Matthijs ter Woord

  • Guest
Operand Encoding
« on: December 14, 2008, 07:17:14 AM »
Hi,

I'm one of the Lead Developers of the Cosmos Project. Currently we use nasm (some older revision due to several bugs) for the actual binary emitting, but we want to remove this dependency (not just because of the bugs, btw).

This is why we are working on an binary assembler library (not standalone). This is where the pain starts. It is very unclear to us how to encode operands, especially when (and when not) the ModR/M and SIB bytes are neccessary (We are now just focussing x86). Do you have any good info about this?

Regards,

Matthijs ter Woord