projects
/
rrq
/
jonasforth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55d4cc1
)
Show the user's input on screen as they are typing
author
Jonas Hvid
<mail@johv.dk>
Mon, 9 Mar 2020 16:01:33 +0000
(17:01 +0100)
committer
Jonas Hvid
<mail@johv.dk>
Mon, 9 Mar 2020 16:01:33 +0000
(17:01 +0100)
uefi.asm
patch
|
blob
|
history
diff --git
a/uefi.asm
b/uefi.asm
index 658431558553e4680d549934cf2065f89e266b99..4ec1b570946570b09d078b3ad22a0341a566da58 100644
(file)
--- a/
uefi.asm
+++ b/
uefi.asm
@@
-119,7
+119,6
@@
uefi_print_string:
;; Inputs:
;; - RCX = Character buffer (1 byte)
;;
-;; [TODO] Show the user's input on screen while they are typing.
;; [TODO] Handle enter key correctly (should return '\n').
uefi_read_char:
mov r15, rcx
@@
-139,6
+138,11
@@
uefi_read_char:
mov ax, [input_key.UnicodeChar]
mov [r15], al
+ ;; Print the character
+ mov rcx, r15
+ mov rdx, 1
+ call uefi_print_string
+
ret
;; Terminate with the given error code.