BASIC binary to decimal

If you wish to post tutorials or need help with any web programming language that isnt listed above then please post them in here.
1 post Page 1 of 1
Contributors
User avatar
Twiffler
Member
Member
Posts: 46
Joined: Wed Sep 22, 2010 10:50 pm

BASIC binary to decimal
Twiffler
This is a simple tutorial on The ti-83 language BASIC and so
This is kinda random but...
first make new program on the calculator and name it

then put in this code
Code: Select all
:Lbl1
:Disp "LSB_TO_MSB"
:Prompt A
:Prompt B
:Prompt C
:Prompt D
:Prompt E
:Prompt F
:If A<0 or A>0
:Goto 1
:If B<0 or B>0
:Goto 1
:If C<0 or C>0
:Goto 1
:If D<0 or D>0
:Goto 1
:If E<0 or E>0
:Goto 1
:If F<0 or E>0
:Goto 1
:0->G
:0->H
:0->I
:0->J
:0->K
:0->L
:If A=1
:1->G
:If B=1
:2->H
:If C=1
:4->I
:If D=1
:8->J
:If E=1
:16->K
:If F=1
:32->L
:G+H+I+J+K+L+M
:Disp M
The code is mostly self explanatory that's probably why its called BASIC and if you want something in more detail I could try to explain.
The "->" is the stow button on the calculator and all the code is in the catalog.

http://www.ticalc.org/programming/columns/ here is more detail about This topic stuff I posted about.
1 post Page 1 of 1
Return to “Other Languages”