From 42e81104451a8540147a766fb7570a76fd24b295 Mon Sep 17 00:00:00 2001 From: turret Date: Wed, 13 Sep 2023 13:44:49 +0000 Subject: asd --- cat.s | 22 +++++----------------- 1 file 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 -- cgit v1.2.3