学习as语法at&t汇编格式--hello,world

.section .data
    string:    .ascii "hello,world/n"
    length = . - string
.section .text
    .globl _start
_start:
    #invoke system call write
    movl $4, %eax
    movl $1, %ebx
    movl $string, %ecx
    movl $length, %edx
    int $0x80
    
    movl $1, %eax
    movl $2, %ebx
    int $0x80
   
发布了66 篇原创文章 · 获赞 0 · 访问量 9万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章