printf integer

#int_printf.s  printf int

.data
a:
    .long 4
str:
    .ascii "the a is 'xxxx'n"

.text
.global _start
_start:
    movl  a, %eax
    or $0x30, %eax
    movl $str, %edi
    movl %eax, 10(%edi)
    movl $4, %eax
    movl $1, %ebx
    movl $str, %ecx
    movl $17, %edx
    int  $0x80

    movl $1, %eax
    movl $0, %ebx
    int  $0x80

本文由网投平台官方发布于IT之家,转载请注明出处:printf integer

您可能还会对下面的文章感兴趣: