commit 759e684c47dad6c555b4a73af95cc6fbcf8572d8
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Sat Mar 12 10:05:02 2022 -0700
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Sat Mar 12 10:05:02 2022 -0700
Change print attributes to individual byte access
---
source/PicoRam.h | 10 ++++++++--
test/vmtests.cpp | 2 +-
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/source/PicoRam.h b/source/PicoRam.h
index 8df5ccd..fcccc49 100644
--- a/source/PicoRam.h
+++ b/source/PicoRam.h
@@ -217,8 +217,14 @@ struct hwState_t {
uint8_t mapMemMapping;
//0x5f57
uint8_t widthOfTheMap;
- //0x5f58..0x5f5b
- uint8_t printAttributes[4];
+ //0x5f58
+ uint8_t printAttributes;
+ //0x5f59
+ uint8_t printCharDimensions;
+ //0x5f5a
+ uint8_t printTabWidth;
+ //0x5f5b
+ uint8_t printOffsetDimensions;
//0x5f5c
uint8_t btnpRepeatDelay;
//0x5f5d
diff --git a/test/vmtests.cpp b/test/vmtests.cpp
index 18d35ee..576a770 100644
--- a/test/vmtests.cpp
+++ b/test/vmtests.cpp
@@ -285,7 +285,7 @@ TEST_CASE("Vm memory functions") {
SUBCASE("poking print attributes") {
vm->vm_poke(0x5f58, 53);
- CHECK_EQ(memory->hwState.printAttributes[0], 53);
+ CHECK_EQ(memory->hwState.printAttributes, 53);
}
SUBCASE("poking btnp repeat delay") {
vm->vm_poke(0x5f5c, 10);