Register tranfer language interpreter in C
I'm building a CPU simulator for my final year project at university
I'm trying to make the simulator accept a file that defines each instruction that the simulator supports. It has a format specified in the file "intSet.txt". This file detials the exact specification of a given instruction in my program and i was wondering how i could make my program understand the instruciton operation that has been specified by the "RTL" section of the file.
Ie understand that by saying <SOURCE> + <DESITNATION> -> <DESITNATION> i want to create a function that will add due to the "+" sign being used.
The file attatched is an example of hoe a given instruction will be defined via the program so any help with any of this would be great.
Thanks for all your help