我寫這個簡單的代碼來嘗試打印之前修改字符串:大會:如何打印之前編輯字符串它
.data
stringaOut: .ascii "000000\n"
stringaOut_len: .long - stringaOut
.text
.global main
main:
leal stringaOut, %esi
movl $49, 0(%esi)
movl $49, 1(%esi)
movl $49, 2(%esi)
movl $49, 3(%esi)
movl $49, 4(%esi)
movl $49, 5(%esi)
movl $49, 6(%esi)
movl $4, %eax
movl $1, %ebx
leal stringaOut, %ecx
movl stringaOut_len, %edx
int $0x80
#return 0
movl $1, %eax
movl $0, %ebx
int $0x80
我覺得應該與1改變零字符串中,但爲什麼不打印什麼?
它在這裏打印。 – Jester