
Write another machine language program that takes a binary number and computes the decimal equivalent. The program should prompt user to enter the binary number bit by bit and then compute and display the decimal equivalent. Assume the binary number can contain any number of bits and represent non-negative integers only. The user should enter each binary digit one by one with the first bit entered being the rightmost binary bit and so on. The user should enter any negative number (except -99) to indicate end of bits, at which point the program should compute and display the decimal. The program should then loop to prompt user for the next binary number. Once the user is done, he/she enters -99 to indicate end of program, at which point the program should exit. A sample run of the program from the IO console is given below: