[stella] Re: reading the driving controllers, generic thoughts

Subject: [stella] Re: reading the driving controllers, generic thoughts
From: "Andrew Wallace" <apeboy@xxxxxxxxxxxxxxx>
Date: Thu, 08 Nov 2001 10:35:18 GMT
Thomas Jentzsch writes:

Don't worry, I know it's quite weird optimized code :-)

Now, in the table-less solution, I'm taking this concept a bit further:

         lda SWCHA
         tay
         eor last        ; 01 or 10 (else: abrupt twist)
         sty last
         dey             ; -> y = -1..2
         cpy  #2
         sbc  #1 ; -> a = -1, 0, 1
         beq .right
.left:

Hi Thomas,


I just have to say it ...
Wow, this is a really beautiful piece of code.
Thanks for explaining the how it works.


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



Current Thread