安装nasm yay -S nasm 非Arch系可以去官网下 打开终端,执行whereis nasm 使用NASM和CL(或LINK)写HelloWorld示例 section .text global main main: mov eax,4 ; 4号调用 mov ebx,1