Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/isr.asm @ 347:ba0f30f3d560
Ignore depths>130m in PC simulation
author | heinrichsweikamp |
---|---|
date | Wed, 25 May 2011 20:44:29 +0200 |
parents | 8bb7c901743d |
children | 9ef9b681f38f 562f1bc79f3c |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/isr.asm Sat May 21 15:13:06 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/isr.asm Wed May 25 20:44:29 2011 +0200 @@ -110,6 +110,13 @@ simulator_int1: movf RCREG,w ; depth in m + movwf PRODL ; Copy + + movlw d'140' ; Limit to 130m + cpfslt PRODL ; compare with value in UART + movwf PRODL ; Overwrite reading + + movf PRODL,w ; depth in m mullw d'100' ; result will be mbar movff PRODL,sim_pressure+0 ; stored for pressure overwrite movff PRODH,sim_pressure+1