Finished lesson 36
All done
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -0,0 +1,56 @@
|
||||
|
||||
; %include '../lib/fl.asm' ; local
|
||||
%include 'lib/fl.asm' ; build.sh
|
||||
|
||||
SECTION .text
|
||||
global _start
|
||||
|
||||
_start:
|
||||
xor eax, eax
|
||||
xor ebx, ebx
|
||||
xor edi, edi
|
||||
xor esi, esi
|
||||
|
||||
_socket:
|
||||
push byte 6
|
||||
push byte 1
|
||||
push byte 2
|
||||
mov ecx, esp
|
||||
mov ebx, 1
|
||||
mov eax, 102
|
||||
int 80h
|
||||
|
||||
_bind:
|
||||
mov edi, eax
|
||||
push dword 0x00000000
|
||||
push word 0x2923
|
||||
push word 2
|
||||
mov ecx, esp
|
||||
push byte 16
|
||||
push ecx
|
||||
push edi
|
||||
mov ecx, esp
|
||||
mov ebx, 2
|
||||
mov eax, 102
|
||||
int 80h
|
||||
|
||||
_listen:
|
||||
push byte 1
|
||||
push edi
|
||||
mov ecx, esp
|
||||
mov ebx, 4
|
||||
mov eax, 102
|
||||
int 80h
|
||||
|
||||
_accept:
|
||||
push byte 0
|
||||
push byte 0
|
||||
push edi
|
||||
mov ecx, esp
|
||||
mov ebx, 5
|
||||
mov eax, 102
|
||||
int 80h
|
||||
|
||||
_exit:
|
||||
call quit
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user