A small rust program by Jyotismoy Kalita to visualize the steps in Booth's Algorithm for multiplication.
Using the binary - booths-algorithm.exe
Suppose in your current working directory you have saved the binary executable with the name booths-algorithm.exe
Run the program
Running without -r flag would let you enter the register size during runtime.
./booths-algorithm
Run in Help mode
Display Help and other useful information
./booths-algorithm -h
Run with -r flag
Run with register size specified at compile time.
#here the Register size is specified as 4 bits
./booths-algorithm -r 4
FLAGS
-r X
: Specify the register bit size where X is the specified size. 0 < X <= 16.
If Register flag is not used when executing the program. The option to specify register will
show during runtime.
-h
: Use help.