Made read_line compliant to new doc guidelines
This commit is contained in:
+6
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user