學習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萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章