piclist 2002\09\11\023537a >
Thread: Antwort: Re: stack check in mplab simulator (5.62)
www.piclist.com/techref/microchip/languages.htm?key=mplab
face
flavicon
face BY : Scott Dattalo email (remove spam text)



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.


<Pine.LNX.4.44.0209102328380.22156-100000@ruckus.brouhaha.com>

In reply to: <OFC7E317B8.9618A684-ONC1256C31.0022FF19@hasler.ascom.ch>
See also: www.piclist.com/techref/microchip/languages.htm?key=mplab
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Antwort: Re: stack check in mplab simulator (5.62)

month overview.

new search...