From c461b68247240efdd404fb438652d44e5ccabd8c Mon Sep 17 00:00:00 2001 From: julianb0 Date: Sun, 2 Jun 2019 11:01:33 +0200 Subject: [PATCH] useless leaves/enters --- dos/prn/print.k | 4 ---- dos/str/strcpy.k | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/dos/prn/print.k b/dos/prn/print.k index a05b2ef..bbf8ce3 100644 --- a/dos/prn/print.k +++ b/dos/prn/print.k @@ -10,7 +10,6 @@ v_print_max := 0xFF ; Print a string ; print: - enter mov rcx, v_print_max .1: @@ -22,14 +21,12 @@ print: loop .1 .2: - leave ret ; ; Print exactly ax1 characters ; print_n: - enter mov rcx, ax1 .1: @@ -37,6 +34,5 @@ print_n: inc ax0 loop .1 - leave ret diff --git a/dos/str/strcpy.k b/dos/str/strcpy.k index 0b1d092..1eb5654 100644 --- a/dos/str/strcpy.k +++ b/dos/str/strcpy.k @@ -56,3 +56,4 @@ strnzcpy: .2: mov b[ax0], 0 ret +