All programs in /classes/cs3421/bin.


int.to.bin - enter a positive or negative integer (e.g., -17), it prints it as a 32-bit two's complement binary number.

bin.to.int - enter a two's complement binary number (any number of bits), it prints the number as a base-10 integer, assuming the first (leftmost) bit you type is the sign bit.

fp.to.bin - enter a floating point number (e.g., 4.59), it prints it's encoding as single-precision number in hex and binary.

bin.to.fp - enter a 32-bit binary floating point number, it prints it in decimal in two forms (rounded to 10 digits after the decimal point, and in scientific notation).

asm.to.bin - enter an operation code, then operands as requested, register operands are simply integers (e.g., 5), not symbolic, and immediate/address operands are integers (signed or unsigned as appropriate for the particular instruction).

bin.to.asm - type in an 8-digit hexadecimal number representing a MIPS instruction, it will print it as an assembly language instruction.

All are linux executables and will only work on linux workstations.