我在写入分配的内存时遇到问题。这是代码。
total: .long 1 # my memory
movl total, %eax # I believe I'm copying address of total into eax
movl $53, %esi # set some value in esi
movl (%esi), %eax # and put this value into total
为什么它不起作用?它给出:“Naruszenie ochrony pamięci”(核心转储)这是波兰语,意思是内存访问违规。