(HP-67/97) a little fun with the fifteen puzzle
|
05-02-2017, 03:03 PM
Post: #14
|
|||
|
|||
RE: (HP-67/97) a little fun with the fifteen puzzle
Here's a quick 16C version of Don's 65 program. The bit manipulation/counting instructions make this algorithm pretty trivial on this model: you don't have to implement any kind of loop for bit counting, just mask them off and use #B to get a count. Of course, the lack of register arithmetic adds a few unnecessary steps. But 25 steps and 2 registers ain't bad!
For this version, enter the row with the blank, GSB A, then enter each tile number followed by R/S. Make sure your word size is set to at least 16. Code: 43,22,A LBL A |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)