访问冲突写入位置0x0105100b。部件

时间:2014-11-25 21:00:34

标签: exception memory assembly

我在运行程序时遇到此错误:

Access violation writing location 0x0105100b

有谁知道这段代码有什么问题?它在mov [ecx],dl

处突破
    .686
.model flat

extern _ExitProcess@4: PROC


public _main

.data

.code
    data1 db 61H,62H,63H,64H,65H,66H,67H,68H,69H,70H,0H
    data2 db 25 dup (?)
_main:

    mov eax, OFFSET data1
    mov ecx, OFFSET data2

    mov edx, 0

    mov ebp, ecx
    sub ebp, eax ; licznik

    mov dl, BYTE PTR [eax]
    mov [ecx],dl




koniec:

    push 0
    call _ExitProcess@4


END

0 个答案:

没有答案