vdp2: define N1CHCN bits

This commit is contained in:
Zack Buhman 2025-08-30 23:36:28 -05:00
parent 45d4d68d23
commit 3e6732e673
2 changed files with 4 additions and 4 deletions

View File

@ -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

6
vdp2.h
View File

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