Print character using linux x86 assembly and at&t syntax -


i'm trying print character stdout using write in linux x86 assembly, using at&t syntax. 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 problem?


Comments

Popular posts from this blog

C++: Boost interprocess memory mapped file error -

python - IO.UnsupportedOperation: Not Writable -

python - malformed header from script index.py Bad header -