improve cat

This commit is contained in:
nora 2022-01-02 17:01:21 +01:00
parent 8f11e29e77
commit 2f2d702f37

View file

@ -1,5 +1,4 @@
extern open_file_arg extern open_file_arg
extern println_num
global _start global _start
@ -48,9 +47,6 @@ process:
cmp rax, 0 cmp rax, 0
jz finish jz finish
; test whether there was an error
cmp rax, 0
jl failed_to_read jl failed_to_read
; write to the file ; write to the file