.BDlab3 JSR BDlab19 ; Increment the music data pointer in BDdataptr1(1 0) ; and fetch the next music data byte into A STA SID+$1 ; Set SID register $1 to the music data byte we just ; fetched, which sets the high byte of the frequency ; for voice 1 JSR BDlab19 ; Increment the music data pointer in BDdataptr1(1 0) ; and fetch the next music data byte into A STA SID+$0 ; Set SID register $0 to the music data byte we just ; fetched, which sets the low byte of the frequency ; for voice 1 RTS ; Return from the subroutineName: BDlab3 [Show more] Type: Subroutine Category: Sound Summary: Fetch the next two music data bytes and set the frequency of voice 1 (high byte then low byte)
[X]
Subroutine BDlab19 (category: Sound)
Increment the music data pointer in BDdataptr1(1 0) and fetch the next data byte into A
[X]
Configuration variable SID = $D400
Registers for the SID sound synthesis chip, which are memory-mapped to the 29 bytes from $D400 to $D41C (see page 461 of the Programmer's Reference Guide)