This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
Name: PAUSE2 Type: Subroutine Category: Keyboard Summary: Wait until a key is pressed, ignoring any existing key press
.PAUSE2
BNE PAUSE2 \ If a key was already being held down when we entered \ this routine, keep looping back up to PAUSE2, until \ the key is released
BEQ PAUSE2 \ Keep looping up to PAUSE2 until a key is pressed
This variation is blank in the Disc (docked) and 6502 Second Processor versions.
RTS \ Return from the subroutine