;******************************************************************* ; An example source code for tool demonstration ;******************************************************************* ; Include derivative-specific definitions INCLUDE 'derivative.inc' ; export symbols XDEF _Startup, main XREF __SEG_END_SSTACK ; symbol defined by the linker for the end of the stack ; variable/data section MY_ZEROPAGE: SECTION SHORT ; Insert here your data definition ; code section MyCode: SECTION main: _Startup: LDHX #__SEG_END_SSTACK ; initialize the stack pointer TXS CLI ; enable interrupts label1: BRA label2 label3: feed_watchdog BLT label1 BRA label2 label2: NOP BRA label3