android_mt6572_jiabo/ndk/tests/device/test-yasm/jni/print_hello.asm
2025-09-05 16:56:03 +08:00

15 lines
243 B
NASM

section .rodata
fmt db "Hello, %s!", 10, 0
section .text
global print_hello
extern printf
print_hello:
sub esp, 28
mov eax, [esp+32]
mov [esp], dword fmt
mov [esp+4], eax
call printf
add esp, 28
ret