Skip to navigation

Elite on the BBC Micro and NES

Controllers: PAUSE2

[NES version, Bank 2]

Name: PAUSE2 [Show more] Type: Subroutine Category: Controllers Summary: Wait until a key is pressed, ignoring any existing key press
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * JMTB calls PAUSE2
.PAUSE2 JSR DrawScreenInNMI_b0 ; Configure the NMI handler to draw the screen .paws1 JSR SetupPPUForIconBar ; If the PPU has started drawing the icon bar, configure ; the PPU to use nametable 0 and pattern table 0 LDA controller1A ; Keep looping back to paws1 until either the A button ORA controller1B ; or the B button has been pressed and then released on AND #%11000000 ; controller 1 CMP #%01000000 BNE paws1 RTS ; Return from the subroutine