Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/sleepmode.asm @ 681:6e456a6398e0
Hardware4 support
author | heinrichsweikamp |
---|---|
date | Fri, 25 Jan 2013 18:00:49 +0100 |
parents | e6ac142e82b0 |
children | 39e02673db4c |
comparison
equal
deleted
inserted
replaced
680:c6220d340684 | 681:6e456a6398e0 |
---|---|
25 tstfsz POSTINC2 ; Test hash values | 25 tstfsz POSTINC2 ; Test hash values |
26 bra sleeploop2 ; At least one char is not zero -> Do not build hash | 26 bra sleeploop2 ; At least one char is not zero -> Do not build hash |
27 decfsz temp1,F | 27 decfsz temp1,F |
28 bra sleeploop1 | 28 bra sleeploop1 |
29 ; build hash (about 90sek @ 16MHz) | 29 ; build hash (about 90sek @ 16MHz) |
30 call PLED_ClearScreen ; clear | 30 call DISP_ClearScreen ; clear |
31 DISPLAYTEXT .1 ; "Building MD2 hash" | 31 DISPLAYTEXT .1 ; "Building MD2 hash" |
32 DISPLAYTEXT .2 ; "Please wait..." | 32 DISPLAYTEXT .2 ; "Please wait..." |
33 call deco_hash ; calculate MD2 hash | 33 call deco_hash ; calculate MD2 hash |
34 movlb b'00000001' ; Back to Bank1 | 34 movlb b'00000001' ; Back to Bank1 |
35 sleeploop2: | 35 sleeploop2: |
36 call PLED_DisplayOff ; display off | 36 call DISP_DisplayOff ; display off |
37 call disable_rs232 ; disable UART module | 37 call disable_rs232 ; disable UART module |
38 | 38 |
39 ; Save surface mode custom view | 39 ; Save surface mode custom view |
40 movff menupos3,EEDATA ; Copy to EEDATA | 40 movff menupos3,EEDATA ; Copy to EEDATA |
41 write_int_eeprom d'93' ; Write last selected customview surface mode into EEPROM | 41 write_int_eeprom d'93' ; Write last selected customview surface mode into EEPROM |