Glad you asked!
It all boils down to lots of practice and reading the documentation that AMD and Intel provide for their microprocessors. They have hundreds of different instructions, but the most common ones needed are stuff like mov, add, sub, push, pop, lea, shr, shl, mul, div and a few others, which aren't too difficult to learn.