Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:multiasm:papc:chapter_6_7 [2025/10/23 15:56] – [BMI1 and BMI2 Instructions] ktokarzen:multiasm:papc:chapter_6_7 [2026/01/22 12:11] (current) – [Sign extension] ktokarz
Line 159: Line 159:
   * **cwde** - converts word in ax to doubleword extended in eax   * **cwde** - converts word in ax to doubleword extended in eax
   * **cdq** - converts doubleword in eax to quadword in edx:eax   * **cdq** - converts doubleword in eax to quadword in edx:eax
 +  * **cdqe** - convert doubleword in eax to quadword in rax
 +  * **cqo** - convert quadword in rax to double quadword in rdx:rax
  
-Sign extension instructions work solely with the accumulator. Fortunately, there are also more universal instructions which copy and extex data at the same time. +Sign extension instructions work solely with the accumulator. Fortunately, there are also more universal instructions which copy and extend data at the same time. 
   * **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.
Line 575: Line 577:
  
 <figure pdep_instr> <figure pdep_instr>
-{{ :en:multiasm:cs:pdep.png?500 |Illustration of the parallel deposit instruction}}+{{ :en:multiasm:cs:pdep.png?600 |Illustration of the parallel deposit instruction}}
 <caption>Illustration of the parallel deposit instruction</caption> <caption>Illustration of the parallel deposit instruction</caption>
 </figure> </figure>
Line 582: Line 584:
  
 <figure pext_instr> <figure pext_instr>
-{{ :en:multiasm:cs:pext.png?500 |Illustration of the parallel extraction instruction}}+{{ :en:multiasm:cs:pext.png?600 |Illustration of the parallel extraction instruction}}
 <caption>Illustration of the parallel extraction instruction</caption> <caption>Illustration of the parallel extraction instruction</caption>
 </figure> </figure>
  
en/multiasm/papc/chapter_6_7.1761224168.txt.gz · Last modified: by ktokarz
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0