From e4f8001a16e690d3af1cd41ce9eab56c9818a5ae Mon Sep 17 00:00:00 2001 From: John Breaux Date: Sun, 30 Apr 2023 00:54:58 -0500 Subject: [PATCH] CPU: Add hires font --- src/cpu.rs | 1 + src/cpu/mem.rs | 2 ++ src/mem/hires.bin | Bin 0 -> 160 bytes 3 files changed, 3 insertions(+) create mode 100644 src/mem/hires.bin diff --git a/src/cpu.rs b/src/cpu.rs index 6b0a6b4..6993ff0 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -610,6 +610,7 @@ impl Default for CPU { stack: vec![], mem: mem! { Charset [0x0050..0x00a0] = include_bytes!("mem/charset.bin"), + HiresCharset [0x00a0..0x0140] = include_bytes!("mem/hires.bin"), Program [0x0200..0x1000], }, font: 0x050, diff --git a/src/cpu/mem.rs b/src/cpu/mem.rs index 5c14a8f..9880843 100644 --- a/src/cpu/mem.rs +++ b/src/cpu/mem.rs @@ -76,6 +76,8 @@ impl Grab for Mem { pub enum Region { /// Character ROM (but writable!) Charset, + /// Hires character ROM + HiresCharset, /// Program memory Program, #[doc(hidden)] diff --git a/src/mem/hires.bin b/src/mem/hires.bin new file mode 100644 index 0000000000000000000000000000000000000000..a95ff3c624adf7935e6db16f506eac8b81a68a7c GIT binary patch literal 160 zcmW-Zp$bDW3`L`+A|@-wz9I67eoQHksEWyod|Xvjn4B7uQxi{(ic*#?aN%$+H=_5~ zDGaa;UKsCca$rd4Qh*kkFvDies!f37azuS_NnYUB*