hey, works great. thanks!! tino Scott Dattalo Gesendet von: pic microcontroller discussion list 11.09.02 08:33 Bitte antworten an pic microcontroller discussion list An: PICLIST@MITVMA.MIT.EDU Kopie: Thema: Re: Antwort: Re: stack check in mplab simulator (5.62) On Wed, 11 Sep 2002, Martin Buehler wrote: > thanks, but i'm not shure if this will work for me, as i use a compiler to > generate the assembler code. so i think i have to patch the assembler > code, before the compiler forwards it to the assembler?!? > thanks tino void main(void) { #ifdef SIMULATION_ONLY _asm call $+1 _endasm; #endif while(1) my_code_that_crashes(); } I of course used SDCC's inline assembly syntax. I doubt you're using SDCC though. Hopefully your compiler is equipped with a preprocessor and inline assembler. If not you're SOL. Scott -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.