Search code examples
assemblydosx86-16

How can I restart my program (8086 TASM)


In the end of my program I have an option to restart the program.

To perform this option, I need to reset some of my variables to ensure that there will not be any problems.

I want to ask if there is an interrupt or function (or else) that will be able to restart/reload the program?

If it was not clear, I'm using DOS OS (on dosbox).


Solution

  • You can run your program once more as child process (dont forget to reduce memory allocated by current process before running child process).