【发布时间】:2013-04-09 21:07:05
【问题描述】:
我在写入分配的内存时遇到问题。这是代码。
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”(核心转储)这是波兰语,意思是内存访问违规。
【问题讨论】:
-
括号里的东西是错的。
-
听起来大学里的组装课程又开始了……