Prev: $BA90 Up: Map Next: $BAB4
$BAA3: Collect a byte from a tune data table
Used by the routine at $BAB4.
Input
X 0 (voice #1), 1 (voice #2) or 2 (voice #3)
($4E,$4F) Address of the tune data table
Output
A Tune data byte
$BAA3 LDY $BBC0,X Pick up the index of the next tune data byte.
$BAA6 LDA ($4E),Y Pick up the tune data byte.
$BAA8 INY Increment the tune data byte index and the MSB of the tune data table address if necessary.
$BAA9 BNE $BAAD
$BAAB INC $4F
$BAAD PHA Save the tune data byte on the stack.
$BAAE TYA Update the tune data byte index stored at $BBC0/1/2.
$BAAF STA $BBC0,X
$BAB2 PLA Restore the tune data byte to A.
$BAB3 RTS
Prev: $BA90 Up: Map Next: $BAB4