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::: LOGICAL INSTRUCTIONS
The instructions are of bit-wise logical instructions.
Bit-wise AND
Syntax :
and src, dest #GAS Syntax
and dest, src #Intel syntax
Performs a bit-wise AND of the two operands, and stores the result in dest.
Example :
movl $0x1, %edx
movl $0x0, %ecx
andl %edx, %ecx
; here ecx would be 0 because 1 AND 0 = 0
Bit-wise OR
Syntax :
or src, dest #GAS Syntax
or dest, src #Intel syntax
Performs a bit-wise OR of the two operands, and stores the result in dest.
Example :
movl $0x1, %edx
movl $0x0, %ecx
orl %edx, %ecx
; here ecx would be 1 because 1 OR 0 = 1
Bit-wise XOR
Syntax :
xor src, dest #GAS Syntax
xor dest, src #Intel syntax
Performs a bit-wise XOR of the two operands, and stores the result in dest.
Example :
movl $0x1, %edx
movl $0x0, %ecx
xorl %edx, %ecx
; here ecx would be 1 because 1 XOR 0 = 1
Bit-wise Inversion
Syntax :
not arg
Performs a bit-wise inversion of arg.
Example :
movl $0x1, %edx
notl %edx
/*here edx would be 0xFFFFFFFE because a bitwise NOT 0x00000001 = 0xFFFFFFFE*/
Subscribe to:
Post Comments (Atom)
"Exploring the Intersections: Insights into Exam Prep, Science, Business,Tech,Web-dev,Admin&Health
श्रमिक पंजीयन का आवेदन - कैसे करे? || श्रमिकों के लिए खजाना || अगर आप कामगार हैं, तो ये सरकारी पोर्टल ज़रूर जानें!
हर पसीने की कीमत होती है, और सरकार अब इसे पहचानती है। ई-श्रम कार्ड बनवाइए और पाएं बीमा, पेंशन, और अनेक सरकारी लाभ बिना किसी बिचौलिये के| श्...
-
UPI पर GST क्यों ट्रेंड कर रहा है? जानिए असली वजह 2025 में UPI पर GST से जुड़ी जानकारी को लेकर काफी भ्रम की स्थिति है, इसलिए आइए इसे स्पष्ट...
-
आर्मी अग्निवीर भर्ती 2025 – ऑनलाइन आवेदन 👉 आधिकारिक वेबसाइट: 🔗 www.joinindianarmy.nic.in 📅 महत्वपूर्ण तिथियाँ: आवेदन शुरू: 12 मार्च...
-
हर पसीने की कीमत होती है, और सरकार अब इसे पहचानती है। ई-श्रम कार्ड बनवाइए और पाएं बीमा, पेंशन, और अनेक सरकारी लाभ बिना किसी बिचौलिये के| श्...
No comments:
Post a Comment