Gnu asで「Hello World」を管理しました!
で、次はprint 1 to 10でしょ?(多分ルビーで)
現時点では、A に続いて B を印刷できれば幸いです。これが私の持っているものです。
.section .text
.globl _start
_start:
# Print A
movl $4,%eax
pushl $0x41
movl %esp,%ecx # Would rather movl $0x41,%ecx
movl $1,%ebx
movl $1,%edx
int $0x80
# Closely followed by B
movl $4,%eax
incl (%esp) # Rather incl(%ecx) here
movl %esp,%ecx
movl $1,%ebx
movl $1,%edx
int $0x80
movl $1,%eax
movl $0,%ebx
int $0x80
実際には機能しますが、私の質問は、なぜできないのかということです
movl $0x41,%ecx
まず、そして次に
incl (%ecx)
少し後で?