diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-10-02 09:24:16 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-10-02 09:24:16 -0700 |
commit | ab1cf1593ac47f087432591736f54bd977de968c (patch) | |
tree | e14a3a0a5b37560bf240d3c7d0b593238036613a | |
parent | 4230946e6a48a94e40b117d24397f2787f950f45 (diff) | |
download | mu-ab1cf1593ac47f087432591736f54bd977de968c.tar.gz |
6926
-rw-r--r-- | 305keyboard.subx | 4 |
1 files changed, 4 insertions, 0 deletions
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 |