comparison code_part1/OSTC_code_asm_part1/start.asm @ 235:ade0848c8b8b

New runtime asserts when compiled in DEBUG more. When __DEBUG is defined, the assert() calls are checked, and PLED_resetdebugger is called when the condition fails.
author JeanDo
date Sat, 19 Mar 2011 11:34:32 +0100
parents 2cbaa01dac26
children 3dbeacf42e9e
comparison
equal deleted inserted replaced
234:bb8940caebe1 235:ade0848c8b8b
23 ; ToDo: 23 ; ToDo:
24 24
25 start: 25 start:
26 movlb b'00000001' ; ram bank 1 selected 26 movlb b'00000001' ; ram bank 1 selected
27 movff STKPTR,temp10 27 movff STKPTR,temp10
28 clrf temp10+1
29
28 call init 30 call init
29 btfsc divemode ; Reset from Divemode? 31 btfsc divemode ; Reset from Divemode?
30 call PLED_resetdebugger ; Yes! Something went wrong, show reset informations 32 call PLED_resetdebugger ; Yes! Something went wrong, show reset informations
31 33
32 clrf STKPTR ; Clear Stackpointer 34 clrf STKPTR ; Clear Stackpointer