Assembly problem

Discussion created by chop on Jan 7, 2009
Latest reply on Jan 13, 2009 by David Payne
I'm attempting to convert an assembly language program originally written for a 705JK to use with the 9s08qg8 , It's going well so far apart from a problem that part way into the program I get a failure due to trying to jump to an unused location ( hex 6091) , I've traced it back to a point in the program where I call a JSR and the return address is put into the stack as 6091 , rather that the correct current program counter value (E28E)

The system is already inside another subroutine ( with the correct return address) so I'm at a loss to figure out why the third address on the stack should be wrongly wiritten/corrupted

Any ideas ? , The software I'm using is Codewarrior 6.1   build 6124 , are there amy issues with this ?