commit 4145200cd9e2577139264f123551689f4bc2a8f7
parent 22c38671abed838e660379829e4e706a46bcfe09
Author: Eamon Caddigan <eamon.caddigan@gmail.com>
Date: Mon, 4 Dec 2023 21:07:04 -0800
December Adventure, Day 4
No uxn code for today, but in order to draw characters I needec characer
sprites.
Diffstat:
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/content/december-adventure/2023-04/index.md b/content/december-adventure/2023-04/index.md
@@ -0,0 +1,28 @@
+---
+title: "2023, Day 4"
+date: 2023-12-04T20:30:42-08:00
+draft: false
+---
+
+Only had about 20 minutes of downtime this evening, but here's a command to dump
+the .icn data for the printable ASCII characters in a .uf1 file (a few can be
+found in the [uxn
+repository](https://git.sr.ht/~rabbits/uxn/tree/main/item/projects/fonts)).
+
+ od --format=x2 --endian=big --output-duplicates --address-radix=n --width=8 \
+ --skip-bytes=512 --read-bytes=768 bbcmicro8.uf1
+
+Here's the first eight lines of output, corresponding to 0x20 (the space
+character) through 0x27 (the single quote).
+
+ 0000 0000 0000 0000
+ 1818 1818 1800 1800
+ 6c6c 6c00 0000 0000
+ 3636 7f36 7f36 3600
+ 0c3f 683e 0b7e 1800
+ 6066 0c18 3066 0600
+ 386c 6c38 6d66 3b00
+ 0c18 3000 0000 0000
+
+I almost forgot to set the endianness, and I won't be sure this is right until I
+actually draw some characters.