From e024478ae61407ed9976c6e1d5290f171451af87 Mon Sep 17 00:00:00 2001 From: Benjamin Penney Date: Mon, 20 Nov 2023 19:21:28 +1100 Subject: [PATCH] Fix oputcrlf function signature oputcrlf modifies dl, but wasn't marked as such. Without this, it could overwrite local variables. --- dosmc.dir/dosmc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dosmc.dir/dosmc.h b/dosmc.dir/dosmc.h index 748ac09..77f1b81 100644 --- a/dosmc.dir/dosmc.h +++ b/dosmc.dir/dosmc.h @@ -258,8 +258,7 @@ static void oputcrlf(void); "int 0x21" \ "mov dl, 10" \ "int 0x21" \ -parm [ dl ] \ -modify [ ax ]; +modify [ dl ax ]; /* Writes a '\0'-terminated string + CRLF ("\r\n") to stdout. * The C standard requires "\n" instead of CRLF.