Write a program to decode a vm520 object file. The file to be decoded will be provided as the single command-line argument.
The structure of a vm520 object file is described in the second half of this document.
Your program should do the following steps:
Insymbol Length 100 OutSymbol Length 100 Object-Code Length 100
18 pushThe words should be displayed one per line. If the word does not contain a valid opcode, print "unknown" on the line.
There are some sample object files available on agate in ~cs520/public/lab5. Remember that your program is intended to process object files, and not the assembly language source files.
You can also create your own tests using the vm520 assembler, called as520. And you can look inside an object file using the vm520 disassembler, called dis520. Both of these tools are installed on agate in ~cs520/bin.
Points will be awarded for the lab in the following way:
Submissions can be checked by typing:
~cs520/bin/scheck lab5
Comments and questions should be directed to hatcher@unh.edu