Deathlich
Newbie level 6
Hello everyone, I have project to make a c/c++ program acts like MIPS assembler, in other words I have to implement ISA using software.
To make it clear, the user write a .txt file including some MIPS instructions (e.g "ADD $t9,$a0,$t5"), and I should read instructions and perform execute it on registers (variables in my program), My main problem in branch and jump instructions. Also I did the scanner, where I put all the user file in an array, but I am thinking to change this to take one instruction at a time (one line).
One last thing, the memory instructions. how to implement memory? using array of structs?
any idea, helps, links to make this clear.
thanx in advance
To make it clear, the user write a .txt file including some MIPS instructions (e.g "ADD $t9,$a0,$t5"), and I should read instructions and perform execute it on registers (variables in my program), My main problem in branch and jump instructions. Also I did the scanner, where I put all the user file in an array, but I am thinking to change this to take one instruction at a time (one line).
One last thing, the memory instructions. how to implement memory? using array of structs?
any idea, helps, links to make this clear.
thanx in advance