我在运行程序时遇到此错误:
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