;==================================== ; wait for keypress or a few seconds ;==================================== wait_a_bit: bit KEYRESET tax keyloop: lda #200 ; delay a bit jsr wait lda KEYPRESS bmi done_keyloop dex bne keyloop done_keyloop: bit KEYRESET rts