Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-25-2013, 07:05 PM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › Assembly v
1 2 3 Next »

[A little about movzx and movsx]

Home General Computer Multimedia Business Lounge

Post Reply 
Tweet
Threaded Mode | Linear Mode
[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.)
Post: #1
ev1lut10n Offline
./Devilz Officer
Posts: 239
Joined: Aug 2011
Reputation: 82
[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
Find all posts by this user
Quote this message in a reply
 Reputed by :  ketek(+1)
01-07-2012, 07:22 AM
Post: #2
nuxbie_cyber Offline
./Devilz Commander
Posts: 267
Joined: Jun 2011
Reputation: 23
RE: [A little about movzx and movsx]
http://myw1sd0m.blogspot.com/2012/01/lit...movsx.html
Find all posts by this user
Quote this message in a reply
01-07-2012, 08:08 AM
Post: #3
STr4sh Away
./Devilz Commander
Posts: 310
Joined: Aug 2011
Reputation: 4
RE: [A little about movzx and movsx]
izin nyimak, biarpun masih suram buat ane piss
Visit this user's website Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-25-2013, 07:05 PM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE