From 439aa159eaf5fbf90a75fe0c10218af128748955 Mon Sep 17 00:00:00 2001 From: julianb0 Date: Thu, 30 May 2019 19:09:32 +0200 Subject: [PATCH] dos --- dos/str/strrev.k | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dos/str/strrev.k b/dos/str/strrev.k index 1338af2..2f1b2f1 100644 --- a/dos/str/strrev.k +++ b/dos/str/strrev.k @@ -11,8 +11,7 @@ strrev: ; save str's location ; xxx why is dec'ing needed? - ;lea rdx, b[ax1 + -1] - mov rdx, ax1 + lea rdx, b[ax1 + -1] ; go to str's end, just before ; the null terminator @@ -36,7 +35,7 @@ strrev: jmp .2 .3: - mov b[ax0+2], 0 + mov b[ax0+1], 0 .4: ret