Im trying to swap 2nd , 3rd elements of array using masm. I have already asked this quеstion, but i have rewritten program in masm so i think it qualifies for a new question.
Heres the code: I am getting 'Program received signal SIGSEGV, Segmentation fault.' message
.386
.MODEL flat
.CODE
_start:
    mov ebx, offset A
    mov ax, [ebx+2]
    mov dx, [ebx+4]
    mov [ebx+2], dx
    mov [ebx+4], ax
    ret   
.DATA
    A dw 1, 33, 1, 1, 1
end _start
