News

You simply cannot guarantee correct behaviour when you do this. You have guarantee how the ABI is going to pass arguments to functions. If it happens to store the return pointer at the top of the ...
And by that logic, if we can do something like some_function(&regular_variable) in C, i.e. pass a pointer as parameter to a function, we should be able to do the same with registers.
[Edited for Sanity and for Typos]Ok, my assignment is to write a mixed c++/nasm program.This is the example code my Professor provided to me, which I have already deviated from but shows what the ...