ちんこ

This commit is contained in:
2025-11-30 22:12:43 +09:00
parent 7426a775b1
commit 92e52667bd

11
main.s
View File

@@ -6,7 +6,6 @@ section .data
listen_msg db " http://0.0.0.0:8000/ ", 0xa, 0x0 listen_msg db " http://0.0.0.0:8000/ ", 0xa, 0x0
listen_len equ $-listen_msg-1 listen_len equ $-listen_msg-1
; 1101
http_header db "HTTP/1.1 200 OK", 0xd, 0xa http_header db "HTTP/1.1 200 OK", 0xd, 0xa
db "Content-Type: text/html", 0xd, 0xa db "Content-Type: text/html", 0xd, 0xa
@@ -128,12 +127,12 @@ accept_loop:
loop_continue: loop_continue:
jmp accept_loop jmp accept_loop
; 終了CTRL+C
mov rax, 1 ; sys_exit
xor rdi, rdi
syscall
error_exit: error_exit:
mov rax, 1 ; sys_exit mov rax, 1 ; sys_exit
mov rdi, 1 mov rdi, 1
syscall syscall
; 終了CTRL+C
; mov rax, 1 ; sys_exit
; xor rdi, rdi
; syscall