diff --git a/data/nextreg.txt b/data/nextreg.txt index ddeb414..ca44b19 100644 --- a/data/nextreg.txt +++ b/data/nextreg.txt @@ -525,7 +525,7 @@ Writable in config mode only. the mask with the attribute byte and the PAPER and border colour are again both taken from the fallback colour in nextreg 0x4A. -0x43 (67) => Palette Control +0x43 (67) => ULA Palette Control (R/W) bit 7 = Disable palette write auto-increment (soft reset = 0) bits 6-4 = Select palette for reading or writing (soft reset = 000) diff --git a/src/utils/register_parser.ts b/src/utils/register_parser.ts index c38ed80..7d5f2ca 100644 --- a/src/utils/register_parser.ts +++ b/src/utils/register_parser.ts @@ -90,6 +90,21 @@ export function processRegisterBlock(paragraph: string, registers: Register[]) { let link = `https://wiki.specnext.dev/`; switch (hex) { + case '0x75': + case '0x76': + case '0x77': + case '0x78': + case '0x79': + // contemplate hoisting this to outside the switch... + link += `${name.replace(/with automatic post increment of Sprite Number/, "(with_INC)").replace(/ /g, "_")}_Register`; + break; + case '0x7F': + // contemplate hoisting this to outside the switch... + link += `${name.replace(/Register/, "Storage").replace(/ /g, "_")}_Register`; + break; + + case '0xF8': + link += `${name.replace(/ /g, "_")}`; default: link += `${name.replace(/ /g, "_")}_Register`; }