Update parsers to handle more wikilink formats
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user