.SetIconBarButtons SETUP_PPU_FOR_ICON_BAR ; If the PPU has started drawing the icon bar, configure ; the PPU to use nametable 0 and pattern table 0 LDA iconBarType ; Set barButtons(1 0) = iconBarButtons ASL A ; + iconBarType * 16 ASL A ; ASL A ; So barButtons(1 0) points to list of button numbers in ASL A ; the iconBarButtons table for this icon bar type ADC #LO(iconBarButtons) STA barButtons LDA #HI(iconBarButtons) ADC #0 STA barButtons+1 RTS ; Return from the subroutineName: SetIconBarButtons [Show more] Type: Subroutine Category: Icon bar Summary: Set the correct list of button numbers for the icon barContext: See this subroutine in context in the source code References: This subroutine is called as follows: * SetIconBarButtonsS calls SetIconBarButtons * SetupIconBarDocked calls SetIconBarButtons
[X]
Macro SETUP_PPU_FOR_ICON_BAR (category: PPU)
If the PPU has started drawing the icon bar, configure the PPU to use nametable 0 and pattern table 0
[X]
Variable barButtons in workspace ZP
The address of the list of button numbers in the iconBarButtons table for the current icon bar
[X]
Variable iconBarButtons (category: Icon bar)
A list of button numbers for each icon bar type
[X]
Variable iconBarType in workspace WP
The type of the current icon bar