| The reason you'd have to write code for each insruction is that exe files are nothing but assembly statements. You only have to write a translation table that takes care of each opcode, and some variables to represent the machine registers but for x86 that's fairly complicated.
What's your overall goal? Do you just want an "interpretted style" programming language, that compiles once? Are you writing some sort of debugger? Is it just a loader for something else?
__________________ Stop intellectual property from infringing on me |