Skip to navigation


Keyboard: FLKB

[Commodore 64 version]

Name: FLKB [Show more] Type: Subroutine Category: Keyboard Summary: Flush the keyboard buffer
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * MT26 calls FLKB * TRADEMODE calls FLKB

This routine does nothing in Commodore 64 Elite, apart from setting the A and X registers to 15. This code is left over from the 6502 Second Processor version of Elite.
.FLKB LDA #15 ; This code is left over from the 6502 Second Processor TAX ; version, which calls OSBYTE to flush the input buffers ;JMP OSBYTE ; (the call to OSBYTE is commented out in the original ; source, so all this does now is set A and X to 15) RTS ; Return from the subroutine