Power-of-two fraction handling for the 41C
|
02-01-2016, 05:43 PM
(This post was last modified: 02-01-2016 06:18 PM by quantalume.)
Post: #7
|
|||
|
|||
RE: Power-of-two fraction handling for the 41C
OK, here is what I came up with. I avoided looking at your solution before I was finished.
Code: 01 LBL "TOF" I like your solution better as it is shorter, doesn't use an extra register and leaves the stack in a more-desirable state. You also take advantage of flag 29 to eliminate the decimal mark from the result. The only thing nice to add would be saving and recalling flag register d in order to return the calculator to the original mode setting, rather than assuming it was in FIX 4. David Brunell Houston, Texas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)