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 INSTRUCTIONS:::5-MOVE STRING
Move byte
Syntax :
movsb
The movsb instruction copies one byte from the memory location specified in esi to the location specified in edi. If the direction flag is cleared, then esi and edi are incremented after the operation. Otherwise, if the direction flag is set, then the pointers are decremented. In that case the copy would happen in the reverse direction, starting at the highest address and moving toward lower addresses until ecx is zero.
Operands
None.
Modified flags
No FLAGS are modified by this instruction
Example :
section .text
    ; copy mystr into mystr2
    mov esi, mystr    ; loads address of mystr into esi
    mov edi, mystr2   ; loads address of mystr2 into edi
    cld               ; clear direction flag (forward)
    mov ecx,6
    rep movsb         ; copy six times
section .bss
    mystr2: resb 6
section .data
    mystr db "Hello", 0x0
Move Word
Syntax :
movsw
The movsw instruction copies one word (two bytes) from the location specified in esi to the location specified in edi. It basically does the same thing as movsb, except with words instead of bytes.
Operands
None.
Modified flags
No FLAGS are modified by this instruction
Example :
section .code
    ; copy mystr into mystr2
    mov esi, mystr
    mov edi, mystr2
    cld
    mov ecx,4
    rep movsw
    ; mystr2 is now AaBbCca\0
section .bss
    mystr2: resb 8
section .data
    mystr db "AaBbCca", 0x0
Subscribe to:
Post Comments (Atom)
"Exploring the Intersections: Insights into Exam Prep, Science, Business,Tech,Web-dev,Admin&Health
श्रमिक पंजीयन का आवेदन - कैसे करे? || श्रमिकों के लिए खजाना || अगर आप कामगार हैं, तो ये सरकारी पोर्टल ज़रूर जानें!
हर पसीने की कीमत होती है, और सरकार अब इसे पहचानती है। ई-श्रम कार्ड बनवाइए और पाएं बीमा, पेंशन, और अनेक सरकारी लाभ बिना किसी बिचौलिये के| श्...
- 
अगर आपने आज तक ऑनलाइन पैसे नहीं कमाए हैं और शुरुआत करना चाहते हैं, तो घबराने की जरूरत नहीं है। ऑनलाइन कमाई के बहुत से तरीके हैं, जिनमें से क...
 - 
MSP RATE DECLARED BY GOVERNMENT OF INDIA भारत सरकार द्वारा, रबी 2020-21 के लिए MSP घोषित कर दी गयी है | गेहूँ का समर्थन मूल्य 50 रूपए बढ़ाक...
 - 
जनसुनवाई-समाधान एक ऑनलाइन और ऑफलाइन शिकायत निवारण प्रणाली है, जिसे केंद्र और राज्य सरकारें आम नागरिकों की समस्याओं के त्वरित समाधान के लिए ...
 
No comments:
Post a Comment