about summary refs log tree commit diff stats
path: root/304screen.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-08-02 12:05:25 -0700
committerKartik Agaram <vc@akkartik.com>2020-08-02 15:11:52 -0700
commit0452b05f5a78b33d94352c676e021b4a1abfb5f2 (patch)
tree53ec02b7898b125b88e27121ee74f22456c524b4 /304screen.subx
parent1b79f705b9975a3293fd111c5dc129e887dc01c0 (diff)
downloadmu-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.subx5
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
159' href='#n159'>159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336