It's called a disassembler, you don't mention what processor it's for, and I don't recognise those instructions.batty said:i need help in writing a c++ program that will read in a file that has 32 bit hexadecimal and than change each 32 bit number in to the correct assembly language instruction(MIPS). then output file ...include the output from the program.....
but only using lui, ori,sw,addi,syscall
This sounds rather like homework or an assignment, you need to do it yourself! - getting other people to do your homework isn't going to help you.batty said:You will write a C++/Java program that will read in a file that has a list of 32 bit hexadecimal numbers (one per line) and then change each 32 bit number into the correct assembly language instruction. Then you will output to a file all the instructions. Then you will run the PCspim on the assembly language file you made and include the output from the program with your code.
Sounds like the instruction set off a RiSC board...batty said:· lui