Hi, I'm wondering if it would be possible to have a prompt from a program and actually call functions inside the program at run-time without using string comparison and stuff (or maybe just a little).
This would theoretically execute this function and parse the given parameter.
The only way I can think of this working (and this is a complete guess, I've not really worked with inline ASM before) would be to use some inline ASM. Since everything gets converted to ASM at compile, theoretically the loop would need to read the string, parse it, extract the parameter(s) and treat these as parameters with some inline ASM by pushing them to the stack for the upcoming function call.
Although, another dilemma, say what I've said so far is possible, how would I convert the Function's name (which will be in a user-inputted string format) into the actual address of the function? (or could I somehow use the name - although I doubt this as a possibility).
Anyway once that is done I'm presuming the inline ASM would be required to jmp to the address of the function (and possibly pop the parameters from the stack? Would the function handle this?)
I just think this would be a cool thing to code for learning purposes (and possibly even debugging purposes).
Let me know what you think, thanks!