diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-08-02 12:05:25 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-08-02 15:11:52 -0700 |
commit | 0452b05f5a78b33d94352c676e021b4a1abfb5f2 (patch) | |
tree | 53ec02b7898b125b88e27121ee74f22456c524b4 /304screen.subx | |
parent | 1b79f705b9975a3293fd111c5dc129e887dc01c0 (diff) | |
download | mu-0452b05f5a78b33d94352c676e021b4a1abfb5f2.tar.gz |
6703 - new types: code-point and grapheme
Both have the same size: 4 bytes. So far I've just renamed print-byte to print-grapheme, but it still behaves the same. I'm going to support printing code-points next, but grapheme 'clusters' spanning multiple code-points won't be supported for some time.
Diffstat (limited to '304screen.subx')
-rw-r--r-- | 304screen.subx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/304screen.subx b/304screen.subx index 340f3623..f77b0da5 100644 --- a/304screen.subx +++ b/304screen.subx @@ -131,7 +131,8 @@ $print-string-to-real-screen:end: 5d/pop-to-ebp c3/return -print-byte-to-real-screen: # c: byte +# currently only supports ascii +print-grapheme-to-real-screen: # c: grapheme # . prologue 55/push-ebp 89/<- %ebp 4/r32/esp @@ -142,7 +143,7 @@ print-byte-to-real-screen: # c: byte 68/push 4/imm32/size 89/<- %ecx 4/r32/esp (write 2 %ecx) -$print-byte-to-real-screen:end: +$print-grapheme-to-real-screen:end: # . reclaim locals 81 0/subop/add %esp 8/imm32 # . restore registers |