Update parsers to handle more wikilink formats

This commit is contained in:
2025-10-14 13:51:24 +01:00
parent 7c4d93d7ba
commit 5b39e84b02
2 changed files with 16 additions and 1 deletions

View File

@@ -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 the mask with the attribute byte and the PAPER and border colour are again both taken
from the fallback colour in nextreg 0x4A. from the fallback colour in nextreg 0x4A.
0x43 (67) => Palette Control 0x43 (67) => ULA Palette Control
(R/W) (R/W)
bit 7 = Disable palette write auto-increment (soft reset = 0) bit 7 = Disable palette write auto-increment (soft reset = 0)
bits 6-4 = Select palette for reading or writing (soft reset = 000) bits 6-4 = Select palette for reading or writing (soft reset = 000)

View File

@@ -90,6 +90,21 @@ export function processRegisterBlock(paragraph: string, registers: Register[]) {
let link = `https://wiki.specnext.dev/`; let link = `https://wiki.specnext.dev/`;
switch (hex) { 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: default:
link += `${name.replace(/ /g, "_")}_Register`; link += `${name.replace(/ /g, "_")}_Register`;
} }