From ab1cf1593ac47f087432591736f54bd977de968c Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 2 Oct 2020 09:24:16 -0700 Subject: 6926 --- 305keyboard.subx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/305keyboard.subx b/305keyboard.subx index 35a200b3..01dc9783 100644 --- a/305keyboard.subx +++ b/305keyboard.subx @@ -126,6 +126,9 @@ $enable-keyboard-type-mode:end: # greater than 0x7f) # - in escapes every byte will have a 0 in the MSB # the two categories overlap only when the first/lowest byte is 0x1b or 'esc' +# +# Only use this in immediate mode; in type (typewriter) mode 4 bytes may get +# parts of multiple keys. read-key-from-real-keyboard: # -> result/eax: grapheme # . prologue 55/push-ebp @@ -151,6 +154,7 @@ $read-key-from-real-keyboard:end: 5d/pop-to-ebp c3/return +# use this in type mode read-line-from-real-keyboard: # in: (addr stream byte) # . prologue 55/push-ebp -- cgit 1.4.1-2-gfad0