.FlushBuffer LDA #21 \ Call OSBYTE with A = 21 to flush buffer X, returning JMP OSBYTE \ from the subroutine using a tail callName: FlushBuffer [Show more] Type: Subroutine Category: Keyboard Summary: Flush the specified bufferContext: See this subroutine in context in the source code References: This subroutine is called as follows: * EnableKeyboard calls FlushBuffer * FlushSoundBuffers calls FlushBuffer * GetPlayerDrain calls FlushBuffer
Arguments: X The number of the buffer to flush: * 4 = sound channel 0 buffer * 5 = sound channel 1 buffer * 6 = sound channel 2 buffer * 7 = sound channel 3 buffer
[X]
Configuration variable OSBYTE = &FFF4
The address for the OSBYTE routine