This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:multiasm:papc:chapter_6_7 [2026/01/22 12:01] – [Sign extension] ktokarz | en:multiasm:papc:chapter_6_7 [2026/01/22 12:11] (current) – [Sign extension] ktokarz | ||
|---|---|---|---|
| Line 162: | Line 162: | ||
| * **cqo** - convert quadword in rax to double quadword in rdx:rax | * **cqo** - convert quadword in rax to double quadword in rdx:rax | ||
| - | Sign extension instructions work solely with the accumulator. Fortunately, | + | Sign extension instructions work solely with the accumulator. Fortunately, |
| * **movsx** - copies and sign-extends a byte to a word or doubleword or word to doubleword. | * **movsx** - copies and sign-extends a byte to a word or doubleword or word to doubleword. | ||
| * **movzx** - copies and zero-extends a byte to a word or doubleword or word to doubleword. | * **movzx** - copies and zero-extends a byte to a word or doubleword or word to doubleword. | ||