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),