CPS 104 (Ramm) Fall Semester 1995 Homework Assignment #7 Due Wednesday, Oct. 25 Write a C++ (or C) program that performs a service similar to that of the previous assignment. However, have the program print out information for only a single word (4 bytes) and have your program interpret the word as an Alpha instruction and have it print out the appropriate instruction mnemonic. Alphas are 64 bit word machines built by Digital Equipment Company. A separate table of op codes is being distributed. Note that you need not produce mnemonics for instructions that cannot be simply decoded by looking at bit positions 31-26 and bit positions 11-5. Since the memory is little-endian, show the contents as both 32-bit words and as bytes. Sample output from you program might look like this: please enter address: 400070 00400070 40640c05 05 . 0c . 64 . 40 . addq please enter address: 0 done For your information: the instructions shown above were generated by the ADDQ R3, R4, R5 instruction. Note: If you are not familiar with the use of and in C, you should look them up. They might make the C version of this program easier to write.