From: yu.dongliang <18588496441@163.com> Date: Thu, 11 Dec 2025 13:37:41 +0000 (+0800) Subject: tmp X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=089f5c8d4f7c7432683dc5527b3a907ef5a2477c;p=asm_demo.git tmp --- 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