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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -