Welcome to our diverse blog where we explore a wide range of fascinating topics that span the realms of exam preparation, science, business, technology, web development, administration, and health. Whether you're a student, a tech enthusiast, an entrepreneur, or simply someone seeking to enhance your knowledge, this blog is designed to provide you with insightful and engaging content.
Wednesday, 8 February 2017
X86 INSTRUCTIONS::: DATA TRANSFER INSTRUCTION:::4-MOVE SIGN EXTEND
Move sign extend :
Syntax :
movs src, dest #GAS Syntax
movsx dest, src #Intel syntax
The movs instruction copies the src operand in the dest operand and pads the remaining bits not provided by src with the sign bit (the MSB) of src. This instruction is useful for copying a signed small value to a bigger register.
Operands
src
Register
Memory
dest
Register
Modified flags
No FLAGS are modified by this instruction
Example :
.data
byteval:
.byte -24 # = 0xe8
.text
.global _start
_start:
movsbw byteval, %ax
# %ax is now -24 = 0xffe8
movswl %ax, %ebx
# %ebx is now -24 = 0xffffffe8
movsbl byteval, %esi
# %esi is now -24 = 0xffffffe8
# Linux sys_exit
mov $1, %eax
xorl %ebx, %ebx
int $0x80
Subscribe to:
Post Comments (Atom)
"Exploring the Intersections: Insights into Exam Prep, Science, Business,Tech,Web-dev,Admin&Health
श्रमिक पंजीयन का आवेदन - कैसे करे? || श्रमिकों के लिए खजाना || अगर आप कामगार हैं, तो ये सरकारी पोर्टल ज़रूर जानें!
हर पसीने की कीमत होती है, और सरकार अब इसे पहचानती है। ई-श्रम कार्ड बनवाइए और पाएं बीमा, पेंशन, और अनेक सरकारी लाभ बिना किसी बिचौलिये के| श्...
-
हर पसीने की कीमत होती है, और सरकार अब इसे पहचानती है। ई-श्रम कार्ड बनवाइए और पाएं बीमा, पेंशन, और अनेक सरकारी लाभ बिना किसी बिचौलिये के| श्...
-
History of India The history of India is one of the grand epics of world history and can be best described in the words of India's firs...
-
Japan's Morinari Watanabe elected President of International Gymnastics Federation Japan's Morinari Watanabe on 20 October 2016 was ...
No comments:
Post a Comment