From 3e6732e6737ba87f7500edc5597469106831b4bf Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Sat, 30 Aug 2025 23:36:28 -0500 Subject: [PATCH] vdp2: define N1CHCN bits --- common.mk | 2 +- vdp2.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common.mk b/common.mk index 551eec0..94f9a91 100644 --- a/common.mk +++ b/common.mk @@ -8,7 +8,7 @@ AFLAGS = --fatal-warnings CARCH = -m2 -mb CFLAGS += -falign-functions=4 -ffunction-sections -fdata-sections -fshort-enums -ffreestanding -nostdlib -CFLAGS += -Wall -Werror -Wfatal-errors -Wno-error=unused-variable +CFLAGS += -Wall -Werror -Wfatal-errors -Wno-error=unused-variable -Wno-array-bounds DEPFLAGS = -MMD -E LDFLAGS = --gc-sections --print-gc-sections --no-warn-rwx-segment --print-memory-usage --entry=_start --orphan-handling=error CXXFLAGS = -std=c++20 -fno-exceptions -fno-non-call-exceptions -fno-rtti -fno-threadsafe-statics diff --git a/vdp2.h b/vdp2.h index 871498e..eb89db3 100644 --- a/vdp2.h +++ b/vdp2.h @@ -336,9 +336,9 @@ enum bgon_bit { // }; enum chctla_bit { CHCTLA__N1CHCN__16_COLOR = (0b00 << 12), - CHCTLA__N1CHCN__256_COLOR = (0b00 << 12), - CHCTLA__N1CHCN__2048_COLOR = (0b00 << 12), - CHCTLA__N1CHCN__32K_COLOR = (0b00 << 12), + CHCTLA__N1CHCN__256_COLOR = (0b01 << 12), + CHCTLA__N1CHCN__2048_COLOR = (0b10 << 12), + CHCTLA__N1CHCN__32K_COLOR = (0b11 << 12), CHCTLA__N1BMSZ__512x256_DOT = (0b00 << 10), CHCTLA__N1BMSZ__512x512_DOT = (0b01 << 10),