Home General Computer Multimedia Business Lounge
|
[A little about movzx and movsx]
|
|
01-07-2012, 06:15 AM
(This post was last modified: 01-12-2012 07:33 AM by ev1lut10n.)
|
|||
|
|||
|
[A little about movzx and movsx]
movzx also known as "move with zero extend" meanwhile movsx stand for "move with signed extend"
actually it will be hard to understand it completly so I'm gonna give a very simple explanation. movzx as we've read above as :"move with zero extend" this instruction will move our operand with additional zero extension where this movzx will be used to move unsigned value only. the syntax of movzx: ============ movzx destination, source ============ syntax of movsx: ============= movsx destination, source ============= and don't forget that movzx will be used for unsigned value only and movsx will be used for signed value. example of movzx: ========== global _start _start: movzx_sample: mov al,0x2f movzx eax,al out: mov al,0x1 int 80h ========== when it's movzx it will suppose your source register as 32 bit register |
|||
Reputed by : ketek(+1) |
|
« Next Oldest | Next Newest »
|
| Topic Tools | ||||||
| ||||||
| Messages In This Thread |
|
[A little about movzx and movsx] - ev1lut10n - 01-07-2012 06:15 AM
RE: [A little about movzx and movsx] - nuxbie_cyber - 01-07-2012, 07:22 AM
RE: [A little about movzx and movsx] - STr4sh - 01-07-2012, 08:08 AM
|
| Users Browsing |
| 1 Guest(s) |










