3 ms·
Good homework is to implement an x86-64 mod/rm encoder. Quite a few corner cases. Sometimes you'll need to up-convert input parameters, because some combinatio
by vardump 8y ago
Good homework is to implement an x86-64 mod/rm encoder.
Quite a few corner cases. Sometimes you'll need to up-convert input parameters, because some combinations can't use 8-bit offset, for example, but require a 32-bit value. RSP can't use scaling, etc.
There's also plenty of redundancy: https://www.strchr.com/machine_code_redundancy https://www.strchr.com/machine_code_redundancy