Archived
1
0

Spaces to tabs

This commit is contained in:
Sweet Bread
2022-11-06 18:21:21 +03:00
parent c163efd83d
commit 20a9a96dc7
16 changed files with 399 additions and 400 deletions
Binary file not shown.
+11 -11
View File
@@ -8,7 +8,7 @@ extrn print.nl
extrn exit
macro nl {
call print.nl
call print.nl
}
@@ -18,16 +18,16 @@ str1 db "Hello world!", 0
section '.text' executable
_start:
push dword 123
call print.int
nl
push dword 123
call print.int
nl
push dword 123
call print.bin
nl
push dword 123
call print.bin
nl
push str1
call print.str
nl
push str1
call print.str
nl
call exit
call exit
+1 -1
View File
@@ -8,4 +8,4 @@ main: ../../std.o
make -C ../../ std.o
clear:
rm main.o main
rm main.o main
Binary file not shown.
+17 -16
View File
@@ -10,7 +10,7 @@ extrn exit
section '.strtab'
filename db "/home/sweetbread/headers", 0
filename db "makefile", 0
section '.bss' writeable
@@ -19,21 +19,22 @@ file_ rd 1
section '.text' executable
_start:
push filename
call file.open
pop eax
mov [file_], eax
push dword [file_]
call print.str
call print.nl
call print.nl
push filename
call file.open
pop eax
mov [file_], eax
push dword [file_]
call print.str
call print.nl
call print.nl
push dword [file_]
call file.content
call print.str
push dword [file_]
call file.content
call print.str
call print.nl
push dword [file_]
call file.close
push dword [file_]
call file.close
call exit
call exit
Binary file not shown.
-1
View File
@@ -21,4 +21,3 @@ main: ../../file.o ../../std.o ../../path.o ../../string.o
clear:
rm main.o main
+9 -9
View File
@@ -15,14 +15,14 @@ hostname db "google.com", 0
section '.text' executable
_start:
call dnstoys.myip
call print.str
call print.nl
call dnstoys.myip
call print.str
call print.nl
push hostname
call network.get_ip
call network.IP_to_str
call print.str
call print.nl
push hostname
call network.get_ip
call network.IP_to_str
call print.str
call print.nl
call exit
call exit