diff options
author | turret <turret@duck.com> | 2023-09-13 13:44:49 +0000 |
---|---|---|
committer | turret <turret@duck.com> | 2023-09-13 13:44:49 +0000 |
commit | 42e81104451a8540147a766fb7570a76fd24b295 (patch) | |
tree | 3924b09e448b65efc516c09e1a954094c7e32371 | |
parent | 3e91090bb2e2eedc95a105b53644812b8e0dfbc3 (diff) | |
download | cat-42e81104451a8540147a766fb7570a76fd24b295.tar.gz cat-42e81104451a8540147a766fb7570a76fd24b295.tar.bz2 cat-42e81104451a8540147a766fb7570a76fd24b295.zip |
asd
-rw-r--r-- | cat.s | 22 |
1 files changed, 5 insertions, 17 deletions
@@ -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 |