Thomas Jentzsch posted this code in the Arkanoid 2600 topic:
Most people skip because reading the paddle takes away precious kernel time (minimum 8 out of just 76 cycles ). So when you add paddle support, the game will have to look less impressive. And most people will not know why and probably blame the developer.
Here is the minimum code. You have to make sure that the *address* of e.g. paddle1 is an 1 byte opcode, e.g. $ea (nop) or $d8 (cld).
lda INPT0 ; 3
bmi .save+1 ; 2/3
sty paddle1 ; 3/2
bBs own readpaddle support sacrifices pfcolors and pfheights which is a needed feature in my paddle game. I'm wondering if this bit of code can allow me to use paddle 1 and still retain the features I need. What kind of setup is needed to actually use this code snippet in bB?