fixed bug in exit, needed extra assembly at end of main.c function