Skip to navigation

Keyboard: FlushBuffer

Name: FlushBuffer [Show more] Type: Subroutine Category: Keyboard Summary: Flush the specified buffer
Context: 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
.FlushBuffer LDA #21 \ Call OSBYTE with A = 21 to flush buffer X, returning JMP OSBYTE \ from the subroutine using a tail call