Post #4405615
2026-08-06 02:49 UTC
i don't know what plans i had tomorrow, but they're fucked.
i'm making a VGA mandelbrot in emoji
Replies (1)
-
@gloriouscow@oldbytes.space 2026-08-06 04:08
i think a very compact decoder can be made. basically we pick four-byte emoji. the first two bytes are always F0 9F . that leaves two usable bytes now there's only 4000 ish emoji not 65535 so unfortunately we can't just store 16 bits per emoji, but as it turns out, there are 256 emoji that map to the values 0-255 with the same divisor that means we can decode "data emoji" into arbitrary bytes via lodsw ; throw away f0 9f lodsw ; read 16-bit payload aad 8Fh ; convert 16-bit payload to 8bit value stosb ; write it to the output buffer that's the basic loop