PDA

View Full Version : Assembly - restarting a program


ICE16
09-25-07, 06:45 PM
Hi everyone,

I built a small (~800 lines) assembly program, and I need (when a certain button is clicked) to restart it, meaning not just jumping to the beginning, but restarting all the variables and registers, so that it would be just like I closed the program and re-opened it. Some friends told me maybe there's a interrupt that does that - is it true? If it isn't, is there any other way (non-manual - I tried to just zero all the relevant variables etc., and for some reason the program crashes when the corresponding button is clicked)?

Thanks a lot:)

bubazoo
10-13-07, 06:09 PM
what do you use for Assembly programming these days?

I believe the last version I used was Microsoft Macro Assembler 8 for Windows NT 4. haven't used it since.

Phattytatty
12-26-08, 04:29 PM
if you show me the code i may be able to help.. also to use an interrupt you need to be in real-mode not protected mode also if running in real address mode you can cause your computer to crash so just be careful :) again i maybe able to help more if i see the code!!!