(11C) (15C) Very fast binary converter + fast modulo
|
03-14-2018, 10:07 PM
(This post was last modified: 04-05-2018 03:51 PM by Michael Zinn.)
Post: #1
|
|||
|
|||
(11C) (15C) Very fast binary converter + fast modulo
This program can convert numbers to binary quickly by using a lookup table to convert 4 bits at once. Internally, it also uses a fast modulo calculation.
How to use the three programs: A: Create a lookup table in registers 1 to 15. This takes about 3 minutes. B: Convert a number to binary. If you created the table this will be fast. Without the table it will be 3x slower. D: y mod x The B program reads flag 0: If it is clear it will use a slow algorithm, if it is set it will use the fast one instead. Program A clears flag 0, creates the lookup table and then sets flag 0. In my custom notation the code looks like this: Code:
However, for entering it into the calculator, the classical button notation might be easier: Code:
If you want to know how I wrote this you can read my blog post about it. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)