Prev: 92DC Up: Map Next: 9337
932B: Calculate the attribute file address for a piano key
Used by the routine at 92DC. Returns with the attribute file address in HL.
Input
A Frequency parameter from the tune data table at 846E
932B SUB $08 Compute the piano key index (K) based on the frequency parameter (F), and store it in bits 0-4 of A: K=31-INT((F-8)/8)
932D RRCA
932E RRCA
932F RRCA
9330 CPL
9331 OR $E0 A=0xE0+K; this is the LSB
9333 LD L,A Set HL to the attribute file address for the piano key
9334 LD H,$59
9336 RET
Prev: 92DC Up: Map Next: 9337