ちんこ
This commit is contained in:
11
main.s
11
main.s
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user