exercism / x86-64-assembly

Exercism exercises in x86-64 Assembly.
https://exercism.org/tracks/x86-64-assembly
MIT License
22 stars 18 forks source link

Correct ADD instruction documentation #147

Closed eihli closed 2 years ago

eihli commented 2 years ago

https://www.felixcloutier.com/x86/add#description

Adds the destination operand (first operand) and the source operand (second operand) and then stores the result in the destination operand. The destination operand can be a register or a memory location; the source operand can be an immediate, a register, or a memory location. (However, two memory operands cannot be used in one instruction.) When an immediate value is used as an operand, it is sign-extended to the length of the destination operand format.

ErikSchierboom commented 2 years ago

I don't know any x86-64. @exercism/reviewers?

bergjohan commented 2 years ago

Thanks, I made a mistake here. This PR is correct and can be merged!