Hello everyone!
I don’t know if this is something genuinely useful, but it was a fun little project for me to do.
I just enabled an in-post firmware reference tool across the forum. When you post some machine code or hardware routines, hovering your cursor over a firmware vector, kernel restart, CRTC register etc will now pop up a card showing its inputs, outputs, corrupted registers, and a short summary of what it does.
It works in regular text, inline code, and syntax blocks.
To do this, I converted the Firmware Guide from Bob Taylor and Thomas Defoe into json format :
cpc-glossary.json (112.5 KB) and then the forum renderer picks the values if it recognizes an entry (from a list of 311) in a post you’re writing.
Hover your cursor over the vectors in these snippets to see it in action:
inline code:
; Wait for frame flyback to avoid screen snow
call &BD19 ; MC WAIT FLYBACK
; Set border ink to bright white
ld b, 26
ld c, b
call &BC38 ; SCR SET BORDER
ret
preformatted blocks:
; Switch to 320x200 4-colour mode
ld a, 1
call &BC0E ; SCR SET MODE
; Print ASCII character
ld a, 65 ; 'A'
call &BB5A ; TXT OUTPUT
ret
; Query attached joystick directions and fire buttons
call &BB24 ; KM GET JOYSTICK
; H = Joystick 0, L = Joystick 1
Any feedback will be more than welcome - feel free to diss it altogether, too!


