From 089f5c8d4f7c7432683dc5527b3a907ef5a2477c Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Thu, 11 Dec 2025 21:37:41 +0800 Subject: [PATCH] tmp --- asm.s | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/asm.s b/asm.s index 20a22d2..68a1467 100644 --- a/asm.s +++ b/asm.s @@ -1,5 +1,5 @@ .text -.global printf +.global printf, putchar .global asm_main asm_main: @@ -33,6 +33,9 @@ asm_main: mov %rsi, %rdi mov $0, %eax call printf + + mov $10, %rdi + call putchar pop %rdi inc %rdi -- 2.25.1