A bitcoin miner for TI calculators (Ti-83 Premium CE/TI-84 Plus CE) fully written in Ti-Basic.
A bitcoin miner for Texas Instruments calculators (Ti-83 Premium CE/TI-84 Plus CE) fully written in Ti-Basic. It should also work on other TI calculators, but I can’t check that since I don’t have any other. It was written on a Ti-83 Premium CE (french model of the TI-84 Plus CE), OS version 5.2.0. It can’t actually generate any bitcoins since it’s well too slow to mine on the actual blockchain - it uses old blocks that you can find on https://blockchain.info/.
0.0001 H/S on a Ti-83 Premium CE (2h50 for one block hash)
Download Ti-Connect to transfer the files to your calculator.
Enter your block version/prev_block/merkle_root/time/bits/nonce in Str5/Str6/Str7/Str8/Str9/Str0 in BTCINIT.
Start BTCMINE and wait for around 3 hours. Your block hash will be displayed and it will tell you if your nonce is or isn’t correct.
Since I can’t put any comments in Ti-Basic, here is a summary :
It uses :
And those use :
If that doesn’t make any sense to you :
I don’t plan to make a lot of changes to this project, it was done in 2 days to prove how slow those calculators are. It is actually pretty amazing that they can actually do all of this stuff in some ways - and that you can do it with 10 strings. I could optimise it a little more, make a loop that will increase the nonce until the block is solved, but it’s well too slow anyway. I know that it would be faster if it was written in C and compiled in ASM, but that wasn’t the point : I did everything directly on the calculator, and I can’t code in C direclty on my calculator.
If you are better than me in english and see any mistakes, feel free to contact me, that’s not my native language.
If you have a better calculator (like a TI-Nspire) or an older one (like a Ti-82 Plus) that can run this code, please send me your results so I can write them here.
If you want to improve it, feel free to create a new branch or to ask for collaborator’s rights.