added read, strcmp, strcpy, finished write, added Makefile
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
global _write
|
||||
extern __errno_location
|
||||
|
||||
_write:
|
||||
mov eax, 0x1
|
||||
syscall
|
||||
jc .error
|
||||
test rax, rax
|
||||
js .error
|
||||
ret
|
||||
|
||||
.error:
|
||||
mov ebx, eax
|
||||
call __errno_location wrt ..plt
|
||||
neg ebx
|
||||
mov dword [rax], ebx
|
||||
mov rax, -1
|
||||
ret
|
||||
Reference in New Issue
Block a user