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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

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