I have a C++ program that would benefit by having a built in assembler. By which I mean it would take a string (or file) as input and generate machine code op-codes.
I don't need fancy linkers, it would just generate small segments of executable code, it would need to cope with simple labels (forward and backward references)
Ideally C or C++ source code which could be incorporated into my program.
I have searched for source code to no avail. Oh, it must run on Windows (Linux source code not suitable) using MS C++ compiler.