CompuServe Thread

Manx C 3.4 Question

2 messages in this thread
#100653From: John D. SellDec 30, 1987 4:14 PM
Hi all, I'm writing a small routine to do a search on a file and upon reaching the } in a function the pc is being reset to 00000. NeNeedless to say my amy crashes soon after that. I traced the routine uusing db and the rts resets the program counter. I'm really stuck on thi this one, I know it's got to be something simple but I can't figure it out. Any help would be appreciated… Thanks John 73647,1534
#100683From: Bob RakoskyDec 30, 1987 7:57 PM
John, I don't use Manx, but it sounds like your stack pointer is different on exit from your routine than it was when you entered (or your stack got corrupted). Are you doing any #asm/#endasm in the routine? That's where I'd look first. Hope this helps…Bob