diff options
author | turret <turret@duck.com> | 2023-09-11 13:11:58 +0000 |
---|---|---|
committer | turret <turret@duck.com> | 2023-09-11 13:11:58 +0000 |
commit | 578a36179f1a1b21f7fb7a3d1dce2b1327e5ede2 (patch) | |
tree | 7a472c4de870a2c03ded7dc54602a012608fe025 /cat.s | |
parent | 60672fe3885d8c51ffb0f07616d41edaa866e0cf (diff) | |
download | cat-578a36179f1a1b21f7fb7a3d1dce2b1327e5ede2.tar.gz cat-578a36179f1a1b21f7fb7a3d1dce2b1327e5ede2.tar.bz2 cat-578a36179f1a1b21f7fb7a3d1dce2b1327e5ede2.zip |
cat: fix issues with new system
- -E test works (as perscribed by gnu)
- buf shouldnt be getting cut off
- buf shouldnt be injecting additional characters
Diffstat (limited to 'cat.s')
-rw-r--r-- | cat.s | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -28,6 +28,7 @@ process_fd: cmp rcx, 0x0a jne .skipshowends call .flushbuf + xor rcx, rcx mov rcx, "$" mov [smallbuf], rcx mov rax, smallbuf @@ -63,6 +64,7 @@ process_fd: .contrwloop: ; continue loop + dec r10 call .flushbuf mov rax, rbx jmp process_fd |