I'm trying to print a character to stdout using write in Linux x86 assembly, using at&t syntax. This code doesn’t work:
.data
.text
.global main
main:
movl $4,%eax
movl $1,%ebx
movl $53,%ecx //'5'
movl $4,%edx
int $0x80
movl $1,%eax
movl $0,%ebx
int $0x80
What's the problem?