BBB AA SSS EEEE CCC OO N N V V EEEE RRR TTTTT EEEE RRR B B A A S E C O O NN N V V E R R T E R R BBB A A SSS EEE C O O N N N V V EEE RRR T EEE RRR B B AAAA S E C O O N NN V V E R R T E R R BBB A A SSS EEEE CCC OO N N VV EEEE R R T EEEE R R by John Ng V 1.3 ------------------------------------------------------------------------------- Intro: This is a program that will convert numbers in decimal to another base, or vice versa, including hex, biary, oct... and any other base from 2 to 36. It will also convert from and to different bases. Vars: Uses Str1, Str2, and Str3. Uses variable A, and the list BASER, but when exited properly, restores A back. See Details at end of readme file for more info. To Use: It is MirageOS compatible Step 1: Run Base3 -It will display the title screen Step 2:Press [Enter] to go on -It will ask for a base between 2 and 36 Step 3:Type a number from 2 to 36. This is the base you will work with. For example, type 16 for hexadecimal. If you want to exit, type -1. -Now there is a menu with 4 options -----------------------MAIN MENU------------------------------ Option 1(To dec): Step 1:Type your number that you want to convert in the base that you entered. For example, type 1A (use capital letters) in hexadecimal. Step 2:Press enter (and wait). -It will display "Converted to:" and the number in decimal. This number is stored in BASER(6). Step 3:To go back to the main menu, press enter. Refer to Step 3 in the To Use section to go back to main menu. Option 2(From dec): Step 1:Type in a number in regular decimal. For example, type in 934. Step 2:Press Enter (and wait). -It will display "Converted to:" and a string of the number in the base specified. This number is stored in Str3. Press enter again and refer to Step 3. Option 3(To base): Step 1:Type in the base you want to convert the number to. Step 2:Type the number in the first base. -It will display "Converted to:" and the number in the other base. This number is stored in Str3. Press enter and type base to go to main menu. Option 4(Quit): -It will display "Good Bye", and will restore the variable A to its original state. -Then, it will exit. History: v0.5: Very buggy, not released yet. v1.0: Debugged everything, plan to make a base to other base option, and to convert it into asm. v1.2: Made a base to base option. Still have to learn some more asm. v1.3: Optimized by David Martin, much smaller. Plan to make it able to show work (idea from Number Base Converter v1.1 by Burak Gul) Legal Stuff: Go ahaead and to whatever you wan't to it; I can't track it anyways... (first time you heard that, eh?) Credits: -Thanx to David Martin who optimized it by over 10 percent... now you can fit more [games] on your calcs! -Try not to remove my name from the title page... Details: -Deletes Variables Str1,Str2,and Str3 in beginning of program. -Dims list BASER to 11 spaces. BASER(11) is the previous state of Var. A -You can type in letters even though you aren't supposed to(type 1FG when the base is 3). It still works, but in a strange way... -Uses Str2 to find out values of certian numbers/characters using the sub command. You can change what is loaded into that string in the begining of the program, therefore changing the value of each character. Just don't mess around too much... -When it converts from 1 base to another, what it is really doing is converting from the first base to decimal, then from decimal back to the other base. So this option takes a long time. -I don't know if it can do decimals and fractions. -Look at the source for more detailed info. Contact: my email is john_ng999@yahoo.com, send comments, complaints, ideas...