Welche Programmiersprache ?
Assembler nehm ich mal an ?
Stackpointer richtig gesetzt ?
push <> pop
Interrupts ? wenn ja stimmt die Einsprungtabelle ?
am besten wäre ws, wenn Du mal das Programm postest...

Gruß Sebastian