; export symbols to be referenced outside of this file XDEF WAITMS ; import external symbols to be referenced inside this file XREF Timer_word INCLUDE 'mc9s12c32.inc' MY_EXTENDED_RAM: SECTION TEMPWD: DS.W 1 MyCode: SECTION WAITMS: PSHY PSHX LDY Timer_word OUTERLOOP: MOVW #5000,TEMPWD INNERLOOP: LDX TEMPWD DEX STX TEMPWD BNE INNERLOOP DEY BNE OUTERLOOP PULX PULY RTS END