Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/start.asm @ 359:91352bb698cf
Oups... time to sleep !
author | JeanDo |
---|---|
date | Tue, 07 Jun 2011 19:10:49 +0200 |
parents | 797e2ac42d24 |
children | 64da813d4726 |
comparison
equal
deleted
inserted
replaced
358:b41f615d4219 | 359:91352bb698cf |
---|---|
37 start2: | 37 start2: |
38 btfsc divemode ; Reset from Divemode? | 38 btfsc divemode ; Reset from Divemode? |
39 call PLED_resetdebugger ; Yes! Something went wrong, show reset informations | 39 call PLED_resetdebugger ; Yes! Something went wrong, show reset informations |
40 start3: | 40 start3: |
41 clrf STKPTR ; Clear Stackpointer | 41 clrf STKPTR ; Clear Stackpointer |
42 lfsr FSR0, 10Bh ; Clear rambank 1-9, do not delete RTC registers | 42 lfsr FSR0,year+1 ; Clear rambank 1-9, do not delete RTC registers |
43 clear_rambank: | 43 clear_rambank: |
44 clrf POSTINC0 | 44 clrf POSTINC0 |
45 movlw 0x0A | 45 movlw 0x0A |
46 cpfseq FSR0H ; Bank 9 done? | 46 cpfseq FSR0H ; Bank 9 done? |
47 bra clear_rambank ; clear... | 47 bra clear_rambank ; clear... |