I need to simulate a computer with basic instruction set: Read, Write, Load, Store, Add, Subtract, Divide, Multiply and Branch.
I have no idea how i should set up my memory except that it can be an array. No idea how to set up the registers or interpret code supplied by a user using the above mnemonics to provide an executable program! Yes my simulation should be able to read a text file provided by someone coding with the stated instruction set.
Can anyone provide any assistance or guide lines? This is a 2nd year project at my university....
I have no idea how i should set up my memory except that it can be an array. No idea how to set up the registers or interpret code supplied by a user using the above mnemonics to provide an executable program! Yes my simulation should be able to read a text file provided by someone coding with the stated instruction set.
Can anyone provide any assistance or guide lines? This is a 2nd year project at my university....