SECTION .text
global main
extern puts
SECTION .text
main:
mov rdi, message; rdi string target reg
call puts
ret
message: db "this is funky", 0
编译命令
nasm -felf64 usr_c.asm
gcc usr_c.o -o use_c -no-pie
SECTION .text
global main
extern puts
SECTION .text
main:
mov rdi, message; rdi string target reg
call puts
ret
message: db "this is funky", 0
编译命令
nasm -felf64 usr_c.asm
gcc usr_c.o -o use_c -no-pie