Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

whats does movsx instruction do?!

$
0
0
Hi guys...!
I have searched on the net about this question but i could'nt find a good help...!
However, in the follow source i can not understand what does movsx do?!!!
Who can help me?! and describe for me?!!! Please

.section .data
        milad:
        .int 20
.section .text
.globl _start
_start:
        nop

        movl $0, %eax
        movl $0, %ebx
        movl $0, %ecx
        movb $20, %al
        addb $10, %al
        movw %100, %cx
        addw %cx, %bx
        movsx %bx, %ebx
        movl $100, %edx
        addl %edx, %edx
        addl milad, %edx
        addl %edx, milad
        movl $1, %eax
        movl $0, %ebx
        int &0x80



Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>