CensoredUsername / dynasm-rs

A dynasm-like tool for rust.
https://censoredusername.github.io/dynasm-rs/language/index.html
Mozilla Public License 2.0
705 stars 52 forks source link

Added ud1 opcode to X64 #62

Closed ptitSeb closed 2 years ago

ptitSeb commented 2 years ago

Adding ud1 opcode, that is "undefined opcode", but with a r/m mod operator. This is to allow some "payload" in the Undefined opcode (by grabbing the bytes at the SIGILL location)

CensoredUsername commented 2 years ago

Seems fine. Would it also be worth adding ud0?

edit: since intel and amd don't seem to agree on if that needs a mod/rm byte that might not be worth it.

ptitSeb commented 2 years ago

Seems fine. Would it also be worth adding ud0?

edit: since intel and amd don't seem to agree on if that needs a mod/rm byte that might not be worth it.

Yeah, ud0 doesn't look too usefull. That's why I sticked with ud1 only.

ptitSeb commented 2 years ago

Any news on this PR?

CensoredUsername commented 2 years ago

My apologies, real life got in the way a bit, I'll try to get to it asap.