From 9794c64cd5bf6d6e7f141748d6911df3f93da683 Mon Sep 17 00:00:00 2001 From: Kwarde Date: Wed, 25 Jun 2025 20:52:52 +0200 Subject: [PATCH] printf(): Don't push and pop rsi before/after itoa (rsi is modified anyway) --- console.asm | 2 -- makefile | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/console.asm b/console.asm index fdbceec..0f24c7c 100644 --- a/console.asm +++ b/console.asm @@ -118,9 +118,7 @@ printf: push rdx push r8 push r10 - push rsi call itoa - pop rsi pop r10 pop r8 pop rdx diff --git a/makefile b/makefile index e89319f..32fb44d 100644 --- a/makefile +++ b/makefile @@ -15,3 +15,4 @@ file.o: file.asm clean: rm -f tests *.lst *.o testFile1.txt +all: clean tests