comparison code_part1/OSTC_code_asm_part1/start.asm @ 378:51baf8777b73 64kByte Logbook

testing, removing unused stuff
author heinrichsweikamp
date Mon, 13 Jun 2011 11:29:37 +0200
parents ca3d15e6240e
children 620c95e23e32
comparison
equal deleted inserted replaced
377:be71e563ac09 378:51baf8777b73
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 28 clrf temp10+1
29
30 call init 29 call init
31
32 read_int_eeprom d'92' ; Read number of CF used in this firmware
33 movlw 0xFF ; First start value
34 cpfseq EEDATA ; Compare
35 bra start2 ; Normal power-on/hard reset boot
36 bra first_start ; Reset and jump to surfmode
37 start2:
38 btfsc divemode ; Reset from Divemode? 30 btfsc divemode ; Reset from Divemode?
39 call PLED_resetdebugger ; Yes! Something went wrong, show reset informations 31 call PLED_resetdebugger ; Yes! Something went wrong, show reset informations
40 start3: 32 start3:
41 clrf STKPTR ; Clear Stackpointer 33 clrf STKPTR ; Clear Stackpointer
42 lfsr FSR0,year+1 ; Clear rambank 1-9, do not delete RTC registers 34 lfsr FSR0,year+1 ; Clear rambank 1-9, do not delete RTC registers