Thomas Jentzsch Posted March 9, 2007 Share Posted March 9, 2007 This is how I would do it: lda v ; 2 ldx #-1 ; 2 .count: inx ; 2 .loop: lsr ; 2 bcs .count ; 2³ bne .loop ; 2³ No someone do the math. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.