LDA $BA + CMP #$02 + BNE (offset does not match) Check whether the current device number is 2 (RS-232). Not creative - not copyrightablee.