comparison code_part1/OSTC_code_asm_part1/menu_reset.asm @ 116:14a074e1a375

Split C code, and use direct linking.
author JeanDo
date Sun, 26 Dec 2010 14:30:13 +0100
parents 50a06adabc67
children e0f29e20bd24
comparison
equal deleted inserted replaced
115:50a06adabc67 116:14a074e1a375
282 ; reset deco data 282 ; reset deco data
283 call PLED_ClearScreen 283 call PLED_ClearScreen
284 DISPLAYTEXT .25 ; "Reset..." 284 DISPLAYTEXT .25 ; "Reset..."
285 movff amb_pressure+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine 285 movff amb_pressure+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine
286 movff amb_pressure+1,int_I_pres_respiration+1 286 movff amb_pressure+1,int_I_pres_respiration+1
287 call deco_main_clear_tissue ; 287 call deco_clear_tissue
288 movlb b'00000001' ; RAM Bank1 selected 288 movlb b'00000001' ; RAM Bank1 selected
289 goto restart ; done. quit to surfmode 289 goto restart ; done. quit to surfmode
290 290
291 do_menu_reset_all: 291 do_menu_reset_all:
292 call PLED_confirmbox ; Returns WREG=0 for Cancel (Or Timeout) and WREG=1 for OK! 292 call PLED_confirmbox ; Returns WREG=0 for Cancel (Or Timeout) and WREG=1 for OK!
301 301
302 reset_start: 302 reset_start:
303 ; reset deco data 303 ; reset deco data
304 movff amb_pressure+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine 304 movff amb_pressure+0,int_I_pres_respiration+0 ; copy surface air pressure to deco routine
305 movff amb_pressure+1,int_I_pres_respiration+1 305 movff amb_pressure+1,int_I_pres_respiration+1
306 call deco_main_clear_tissue ; 306 call deco_clear_tissue
307 movlb b'00000001' ; RAM Bank1 selected 307 movlb b'00000001' ; RAM Bank1 selected
308 308
309 ; reset gases 309 ; reset gases
310 clrf EEADRH ; EEPROM BANK 0 ! 310 clrf EEADRH ; EEPROM BANK 0 !
311 311