Re: [stella] Reading Paddles?

Subject: Re: [stella] Reading Paddles?
From: Thomas Jentzsch <tjentzsch@xxxxxx>
Date: Sat, 11 Jan 2003 09:45:22 +0100
Paul Slocum wrote:
>          lda INPT0               ;3
>          bmi paddles1            ;2 or 3
>          bpl noPaddles           ;2 or 3
>          sty padVal1             ;3
> paddles1

> ; somewhere outside of kernal loop
> noPaddles
>          bpl paddles1            ;3

Just a little correction:
The paddles1 label should be move before sty padVal1. :-)

And this code is a little bit faster and easier to code:
          lda INPT0               ;3
          bmi paddles1            ;2 or 3
          .byte $2c               ;1    bit abs opcode
 paddles1:
          sty padVal1             ;3

Have fun!
Thomas                            
_______________________________________________________
Thomas Jentzsch         | *** Every bit is sacred ! ***
tjentzsch at web dot de |

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread