From 92e52667bd6622a02e8259130512c9ce4fd3df96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Sun, 30 Nov 2025 22:12:43 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=A1=E3=82=93=E3=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.s | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/main.s b/main.s index 297bf55..b651c2d 100644 --- a/main.s +++ b/main.s @@ -6,7 +6,6 @@ section .data listen_msg db "サーバーは http://0.0.0.0:8000/ で実行中・・・", 0xa, 0x0 listen_len equ $-listen_msg-1 - ; 1101 http_header db "HTTP/1.1 200 OK", 0xd, 0xa db "Content-Type: text/html", 0xd, 0xa @@ -128,12 +127,12 @@ accept_loop: loop_continue: jmp accept_loop + ; 終了(CTRL+C) + mov rax, 1 ; sys_exit + xor rdi, rdi + syscall + error_exit: mov rax, 1 ; sys_exit mov rdi, 1 syscall - - ; 終了(CTRL+C) - ; mov rax, 1 ; sys_exit - ; xor rdi, rdi - ; syscall