From 65caf8aff9cba5843e691894cf374f6d3b25327e Mon Sep 17 00:00:00 2001 From: Michal Isalski Date: Tue, 1 Sep 2026 13:47:09 +0200 Subject: [PATCH] Made read_line compliant to new doc guidelines --- console.asm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/console.asm b/console.asm index 9e8c6ac..fc7bce1 100644 --- a/console.asm +++ b/console.asm @@ -1,14 +1,15 @@ ; Reads a line from the keyboard and fills the specified buffer with it ; Does not support Shift or any other special keys -; Argument: r1 - pointer to the buffer -; Returns the pointer to the same buffer -; Clobbers r2, r3 and r4 +; Arguments: +; r1 - pointer to the buffer +; Result: +; r1 - pointer to the same buffer +; Clobbers: r2, r3, r4 pub read_line: - mov r4, 0 ; Storing the last key here, so we don't repeat the same key mov r3, r1 ; The pointer to after the last character - read_line_keyloop: + read_line_keyloop: keyboard r2 cmp r2, r4