diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-09-14 21:42:31 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-09-14 21:42:31 -0700 |
commit | ad1e53df8b525f55d28f295ac9212d08af4dca90 (patch) | |
tree | b7564119dc0a074c3a6c01c38fd3d388380d315f | |
parent | 6b41ca6d95bf6dbafab3fdc85d7355ac8b365931 (diff) | |
download | mu-ad1e53df8b525f55d28f295ac9212d08af4dca90.tar.gz |
6778
-rw-r--r-- | 305keyboard.subx | 4 | ||||
-rw-r--r-- | 400.mu | 2 | ||||
-rw-r--r-- | apps/arith.mu | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/305keyboard.subx b/305keyboard.subx index 5c05be6b..bac7a431 100644 --- a/305keyboard.subx +++ b/305keyboard.subx @@ -119,7 +119,7 @@ $enable-keyboard-type-mode:end: 5d/pop-to-ebp c3/return -read-key: # -> result/eax: byte +read-key-from-real-keyboard: # -> result/eax: byte # . prologue 55/push-ebp 89/<- %ebp 4/r32/esp @@ -134,7 +134,7 @@ read-key: # -> result/eax: byte # (read 2 %ecx) # => eax 8b/-> *(ecx+0xc) 0/r32/eax -$read-key:end: +$read-key-from-real-keyboard:end: # . reclaim locals 81 0/subop/add %esp 0x10/imm32 # . restore registers diff --git a/400.mu b/400.mu index ab41fc5b..57032f0b 100644 --- a/400.mu +++ b/400.mu @@ -158,7 +158,7 @@ sig hide-cursor-on-real-screen sig show-cursor-on-real-screen sig enable-keyboard-immediate-mode sig enable-keyboard-type-mode -sig read-key -> result/eax: byte +sig read-key-from-real-keyboard -> result/eax: byte sig open filename: (addr array byte), write?: boolean, out: (addr handle buffered-file) sig populate-buffered-file-containing contents: (addr array byte), out: (addr handle buffered-file) sig new-buffered-file out: (addr handle buffered-file) diff --git a/apps/arith.mu b/apps/arith.mu index fdf97213..46341157 100644 --- a/apps/arith.mu +++ b/apps/arith.mu @@ -243,7 +243,7 @@ fn skip-spaces _look: byte -> look/esi: byte { } fn get-char -> look/esi: byte { - var tmp/eax: byte <- read-key + var tmp/eax: byte <- read-key-from-real-keyboard look <- copy tmp compare look, 0 { |