aboutsummaryrefslogtreecommitdiffstats
path: root/cat.s
diff options
context:
space:
mode:
authorturret <turret@duck.com>2023-09-13 13:44:49 +0000
committerturret <turret@duck.com>2023-09-13 13:44:49 +0000
commit42e81104451a8540147a766fb7570a76fd24b295 (patch)
tree3924b09e448b65efc516c09e1a954094c7e32371 /cat.s
parent3e91090bb2e2eedc95a105b53644812b8e0dfbc3 (diff)
downloadcat-42e81104451a8540147a766fb7570a76fd24b295.tar.gz
cat-42e81104451a8540147a766fb7570a76fd24b295.tar.bz2
cat-42e81104451a8540147a766fb7570a76fd24b295.zip
asd
Diffstat (limited to 'cat.s')
-rw-r--r--cat.s22
1 files changed, 5 insertions, 17 deletions
diff --git a/cat.s b/cat.s
index ec2106a..bdea554 100644
--- a/cat.s
+++ b/cat.s
@@ -58,13 +58,13 @@ process_fd:
or rcx, "^"
and rcx, 0xffff
mov [smallbuf], rcx
- mov rax, smallbuf
- call outpstring
dec r9
call .flushbuf
inc r10
inc r9
dec r8
+ mov rax, smallbuf
+ call outpstring
jmp .skipnonprinting
.showendsm:
; M- notation
@@ -81,22 +81,10 @@ process_fd:
sub rcx, rax
sub [r10], rax
jmp .docaret
-.endsmflushandcont:
- mov [smallbuf], rcx
- mov rax, smallbuf
- call outpstring
- dec r9
- call .flushbuf
- inc r10
- inc r9
- dec r8
- jmp .skipnonprinting
.eq127:
- xor rcx, rcx
- mov rcx, "^?"
- mov [smallbuf], rcx
- mov rax, smallbuf
- call outpstring
+ mov rcx, 0x17
+ jmp .docaret
+
.skipnonprinting:
dec r8