From 6bcfcbd7ccbfb046a5bb4b24f799f70336c2bc50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sun, 4 Jul 2021 23:40:39 +0300 Subject: [PATCH] Use ds instead of es for itoa --- strint.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/strint.inc b/strint.inc index dd0bc60..7f2ac9c 100644 --- a/strint.inc +++ b/strint.inc @@ -1,8 +1,8 @@ ; IN: ; ax = number to convert -; es:bx = storage buffer +; ds:bx = storage buffer ; OUT: -; es:bx = start of converted number +; ds:bx = start of converted number itoa: push ax push cx @@ -11,7 +11,7 @@ itoa: mov cx, 10 add bx, 5 - mov byte [es:bx], 0 + mov byte [bx], 0 .convert_loop: test ax, ax @@ -22,7 +22,7 @@ itoa: add dl, '0' dec bx - mov byte [es:bx], dl + mov byte [bx], dl jmp .convert_loop