useless leaves/enters

This commit is contained in:
julianb0 2019-06-02 11:01:33 +02:00
parent 2263a3f43d
commit c461b68247
No known key found for this signature in database
GPG Key ID: 9C7ACF0C053FB8A1
2 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -56,3 +56,4 @@ strnzcpy:
.2:
mov b[ax0], 0
ret