comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 644:420e62cd88ad

point to correct diluent location
author heinrichsweikamp
date Wed, 03 Oct 2012 13:12:02 +0200
parents 2ab9e9a8a189
children e6ac142e82b0
comparison
equal deleted inserted replaced
643:3b50c9949b84 644:420e62cd88ad
1448 1448
1449 movlw d'3' ; list all three SP 1449 movlw d'3' ; list all three SP
1450 cpfseq apnoe_mins ; All gases shown? 1450 cpfseq apnoe_mins ; All gases shown?
1451 bra PLED_pre_dive_screen3_loop ;no 1451 bra PLED_pre_dive_screen3_loop ;no
1452 1452
1453 read_int_eeprom d'33' ; Read byte (stored in EEDATA) 1453 movlw .1
1454 movff EEDATA,active_gas ; Read start gas (1-5) 1454 movwf EEADRH
1455 decf active_gas,W ; Gas 0-4 1455 read_int_eeprom d'96' ; Read O2
1456 mullw d'4' 1456 movff EEDATA,lo
1457 movf PRODL,W 1457 read_int_eeprom d'97' ; Read He
1458 addlw d'6' ; = address for O2 ratio 1458 clrf EEADRH
1459 movwf EEADR
1460 call read_eeprom ; Read O2 ratio
1461 movff EEDATA, lo ; O2 ratio
1462 incf EEADR,F ; = address for He
1463 call read_eeprom ; Read He ratio
1464 movff EEDATA,hi ; And copy into hold register
1465 1459
1466 WIN_LEFT .90 1460 WIN_LEFT .90
1467 WIN_TOP .100 1461 WIN_TOP .100
1468 STRCPY TXT_DIL4 1462 STRCPY TXT_DIL4
1469 output_8 ; O2 Ratio 1463 output_8 ; O2 Ratio