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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -