aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorturret <turret@duck.com>2023-09-13 13:34:49 +0000
committerturret <turret@duck.com>2023-09-13 13:34:49 +0000
commit3e91090bb2e2eedc95a105b53644812b8e0dfbc3 (patch)
tree0f762e60f06768657da7e4b631ce0c00568f83ec
parentc7ac1461c721877d73a91400e4de231a9ffaaf8e (diff)
downloadcat-3e91090bb2e2eedc95a105b53644812b8e0dfbc3.tar.gz
cat-3e91090bb2e2eedc95a105b53644812b8e0dfbc3.tar.bz2
cat-3e91090bb2e2eedc95a105b53644812b8e0dfbc3.zip
return normalcy with -v
-rw-r--r--cat.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/cat.s b/cat.s
index 37ade09..ec2106a 100644
--- a/cat.s
+++ b/cat.s
@@ -77,7 +77,9 @@ process_fd:
call outpstring
mov rcx, [r10]
and rcx, 0xff
+ mov rax, 128
sub rcx, rax
+ sub [r10], rax
jmp .docaret
.endsmflushandcont:
mov [smallbuf], rcx