Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/start.asm @ 163:144822282fa3
Fusion declaration of shared C/ASM variables.
+ remove unused variables.
+ sort all in variables in BANK3, and out variables in BANK2.
author | JeanDo |
---|---|
date | Fri, 21 Jan 2011 01:44:37 +0100 |
parents | 0ee809806454 |
children | cb055a7d75f3 |
comparison
equal
deleted
inserted
replaced
162:fdebc43c8372 | 163:144822282fa3 |
---|---|
216 movwf wait_temp | 216 movwf wait_temp |
217 movff wait_temp,char_I_deco_model ; Clear Flagbyte | 217 movff wait_temp,char_I_deco_model ; Clear Flagbyte |
218 ; Load GF values into RAM | 218 ; Load GF values into RAM |
219 movlw d'90' | 219 movlw d'90' |
220 movwf wait_temp | 220 movwf wait_temp |
221 movff wait_temp,char_I_GF_Lo_percentage | 221 movff wait_temp,char_I_GF_Low_percentage |
222 movff wait_temp,char_I_GF_Hi_percentage ; Set to 90/90... | 222 movff wait_temp,char_I_GF_High_percentage ; Set to 90/90... |
223 clrf EEADRH | 223 clrf EEADRH |
224 read_int_eeprom d'34' ; Read deco data | 224 read_int_eeprom d'34' ; Read deco data |
225 movlw d'1' ; Gauge mode | 225 movlw d'1' ; Gauge mode |
226 cpfseq EEDATA | 226 cpfseq EEDATA |
227 bra restart_3_test_ppO2_mode; check for ppO2 mode | 227 bra restart_3_test_ppO2_mode; check for ppO2 mode |
248 movlw d'1' | 248 movlw d'1' |
249 movwf wait_temp | 249 movwf wait_temp |
250 movff wait_temp,char_I_deco_model ; Set Flagbyte for GF method | 250 movff wait_temp,char_I_deco_model ; Set Flagbyte for GF method |
251 ; Load GF values into RAM | 251 ; Load GF values into RAM |
252 GETCUSTOM8 d'32' ; GF low | 252 GETCUSTOM8 d'32' ; GF low |
253 movff EEDATA,char_I_GF_Lo_percentage | 253 movff EEDATA,char_I_GF_Low_percentage |
254 GETCUSTOM8 d'33' ; GF high | 254 GETCUSTOM8 d'33' ; GF high |
255 movff EEDATA,char_I_GF_Hi_percentage | 255 movff EEDATA,char_I_GF_High_percentage |
256 return ; start in Surfacemode | 256 return ; start in Surfacemode |
257 restart_5_test_gfO2_mode: | 257 restart_5_test_gfO2_mode: |
258 movlw d'5' ; GF CC mode | 258 movlw d'5' ; GF CC mode |
259 cpfseq EEDATA | 259 cpfseq EEDATA |
260 return ; Start in Surfacemode | 260 return ; Start in Surfacemode |
262 movlw d'1' | 262 movlw d'1' |
263 movwf wait_temp | 263 movwf wait_temp |
264 movff wait_temp,char_I_deco_model ; Set Flagbyte for GF method | 264 movff wait_temp,char_I_deco_model ; Set Flagbyte for GF method |
265 ; Load GF values into RAM | 265 ; Load GF values into RAM |
266 GETCUSTOM8 d'32' ; GF low | 266 GETCUSTOM8 d'32' ; GF low |
267 movff EEDATA,char_I_GF_Lo_percentage | 267 movff EEDATA,char_I_GF_Low_percentage |
268 GETCUSTOM8 d'33' ; GF high | 268 GETCUSTOM8 d'33' ; GF high |
269 movff EEDATA,char_I_GF_Hi_percentage | 269 movff EEDATA,char_I_GF_High_percentage |
270 return ; start in Surfacemode | 270 return ; start in Surfacemode |
271 | 271 |
272 startup_screen1: | 272 startup_screen1: |
273 call PLED_ClearScreen | 273 call PLED_ClearScreen |
274 call PLED_startupscreen1 ; show startup sreen | 274 call PLED_startupscreen1 ; show startup sreen |