I'm not sure exactly what I'm looking for or whether it exists, but I was hoping to get any ideas from the assembly experts here. I do know basic x86 and ARM assembly from classes but have not used them much in "real life."
Ideally, what I would like is an open source C/C++ library that takes in an x86 or ARM assembly program as a text string, interprets the commands, and outputs the final values of variables representing the registers as the result of running the assembly program.
There doesn't seem to be any such thing as an open source assembly "interpreter." On the other hand, a complete open source emulator of a generic ARM processor would be radical overkill, and I wouldn't even know where to begin to modify the source code of such an emulator to achieve my very modest goal.
Does anyone here have an idea for how I might go about doing what I want to do? Any help is appreciated!